您当前的位置: 首页 >  服务器

暂无认证

  • 0浏览

    0关注

    101061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[Asp.Net]实现提取数据到table中 不用服务器控件

发布时间:2010-04-16 09:43:00 ,浏览量:0

1.后台方法       public string id;     public string usercode;     public void tbalelist(string strsql)     {         string str = string.Empty;         DBCon OAcon = new DBCon();         SqlConnection myConn = new SqlConnection(OAcon.getOAcon());         myConn.Open();         SqlCommand sc = new SqlCommand(strsql, myConn);         SqlDataReader sr = sc.ExecuteReader();         if(sr.Read())         {             id=sr[0].ToString();             usercode = sr[1].ToString();           }         sr.Close();         myConn.Close();             } 2.前台                                                                                                                                                                                                                  ID                                     张号 <%= id %> <%= usercode %>

关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.1874s