当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我定义的函数是: extern "c" __declspec(dllexport) bool wtsys_setcom(string ccomm,int bps); 出错提示是: [c++ error] main.h(42): e2147 string cannot start a parameter declaration [c++ error] main.cpp(6......
 ·cpu占用过高而且不退出    »显示摘要«
    摘要: apache php mysql linux 我做的一个网站在访问一会后,就会出现 httpd 占用cpu到99%,而且总不退出,我也不知是程序的原因,还是怎么回事。 有办法解决这样的问题吗?或者通过什么办法能够找到原因呢?谢了。 ......


有谁能帮我我想要把查询结果输出我是新手呀拜托了

我想要把查询的结果通过datagrid输出!!!  
  请把答案发到我得邮箱sjinli2003@yahoo.com.cn  
  不胜感激!!!

NO.1   作者: falcon99

例程如下:  
  Private   Sub   Page_Load(ByVal   sender   As   System.Object,   ByVal   e   As   System.EventArgs)   Handles   MyBase.Load  
     
                  If   Not   Me.IsPostBack   Then  
                          myConn.Open()  
                          Dim   select_informant   As   String   =   "select   informant_no,informant_name   from   informant   where   informant_khno="   &   Trim(Session("oper_khno"))   &   ""  
                          Dim   da_informant   As   SqlDataAdapter   =   New   SqlDataAdapter(select_informant,   myConn)  
                          Dim   ds   As   New   DataSet()  
   
                          da_informant.Fill(ds,   "informant")  
   
                          ds.Tables("informant").Columns(0).ColumnName   =   "编     号"  
                          ds.Tables("informant").Columns(1).ColumnName   =   "姓     名"  
   
                          DataGrid1.DataSource   =   ds.Tables("informant").DefaultView  
                          DataGrid1.DataBind()  
   
                          ds.Dispose()  
   
                          myConn.Close()  
                  End   If  
          End   Sub  
 


    摘要: 我发觉很多web系统开发者,一谈到开发语言的时候,大多均选择c#做为其开发语言,极少有人还选择vb.net,到底为什么?c#真的是比vb.net优秀而且是优秀很多吗?早期的vb语言确实因为某些方面的性能不好被人诟病,但在.net时代,vb的性能也得到了很大的提升,各方面的性能均突飞猛进,有什么理由重c#而轻vb? 我很困惑,从我个人来讲,我比较欣赏vb的整齐美观的语法结构,而不喜欢c#大括......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE