+ -
当前位置:首页 → 问答吧 → .NET
  • VB.NET怎样写数据到数据库?
    VB.NET怎样写数据到数据库?只是更新么?
    SDFJRUUVBFUR  时间:11-21 + 阅读全文
  • 求指点
    我用SqlDataSource连接的数据库想要实现用textbox插入数据库为什么可以执行但是数据插入不进去 button代码和SqlDataSource事件如下求大神指点usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web
    Anti_Jo  时间:12-17 + 阅读全文
  • 终于知道C#的动态类型有什么用了。
    先看下面这个函数C#codepublicstaticTSum<T>(paramsT[]Args){Tsum=Args[0];for(inti=1;i<Args.Length;++i){sum+=Args[i];}returnsum;}在C++中这是最最基
    osyxz2011  时间:12-17 + 阅读全文
  • C# 想数据库中添加数据的问题
    privatevoidbtnOut_Click(objectsender,EventArgse) { if(textID.Text.Trim()=="") MessageBox.Show("请填写物资编号!","提示"); else {   stringconnectio
    a8764831  时间:12-17 + 阅读全文
  • C# 中NULL的困惑
    C#中很多函数的参数加?号,表示可为空,比如DateTime的,但是这样会导致我插入数据库的时间显示默认时间,不光是时间,所有类型都会显示默认值,string会显示空白,int会显示0,我怎么让它显示默认值为NULL,还有一个疑问就是,NULL,在数据库里面表示的是有值还是没有值,因为我试过了,用不为空的字段用NULL赋值,数据库里面是不报错的,还有一种是字段值直接空白的,请问都有些什么讲究,我
    asdxz11  时间:12-17 + 阅读全文
  • 新手请教。存储过程返回值问题。
    我使用的是实体类方式,PageModel:C#codeusingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceModel{publicclassPageModel{privateint_PageSize,_PageIndex;
    ChinaXtHuLang  时间:12-17 + 阅读全文
  • Ajax问题。。用AJAX从数据库查出来的时间类型转型
    如题:用AJAX从数据库查出来的时间类型转型,转为Datetime类型如果不转就会是这样的:/Date(1323878400000)/我要转为:2011-01-02请指教???
    vaecnfeilong  时间:12-17 + 阅读全文
  • XML文档只允许有一个根结点?
    C#codeXmlDocumentdoc=newXmlDocument();XmlElementnewRoot=doc.CreateElement("根结点");doc.AppendChild(newRoot);//XmlElementnewRoot2=doc.Cre
    Win32FanEx  时间:12-17 + 阅读全文
  • Excel数据写入到数据库中出现异常“找不到可安装的 isam”
    stringmystring=@"Provider=Microsoft.Jet.OLEDB.4.0;DataSource=E:\\20111217.xls;ExtendedProperties='Excel11.0;HDR=Yes;IMEX=1'"; OleDbConnectioncnnxls=newOleDbConnection(mystring); 
    xu_diligent  时间:12-17 + 阅读全文
  • 登录页面实现这种效果
    哪位大侠能实现?最好帖上代码。不要用window.open()方法。 不显示地址栏,不显示菜单栏,不显示状态栏。
    yzw1019  时间:12-17 + 阅读全文