string id = request("id");
SqlConnection myConnection = new SqlConnection("server=chen;database=chen;Trusted_Connection=yes");
SqlDataAdapter myCommand = new SqlDataAdapter("select id,title,contant from title where id="&id,myConnection);
myConnection.Open;要修改。ID值在另一个页面怎样接收我是自学者上面的程序显示错误
SqlConnection myConnection = new SqlConnection("server=chen;database=chen;Trusted_Connection=yes");
SqlDataAdapter myCommand = new SqlDataAdapter("select id,title,contant from title where id="&id,myConnection);
myConnection.Open;要修改。ID值在另一个页面怎样接收我是自学者上面的程序显示错误
解决方案 »
- datagridview 怎么根据条件设置某一行背景颜色
- 怎样在Windows7找到SMTP Service,如果没有,该在哪里下载
- 看看水有多深
- 求助~~多线程问题!用多个线程调用一个方法!
- Excel 导出 出现 "字段太小而不能接受所要添加的数据的数量。试着插入或粘贴较少的数据" 错误
- 求能在64位Vista上使用的CodeSmith 4.0的注册机,100分相送!
- 一个问题 数据适配器 求教!!!
- 求C的一个算法的意思,如果用C#怎样写呢
- 怎么矩中 Word文档中的整个表格(Table),不是表格内的内容
- 如何让IndexOf查找时大小写不敏感
- 新手,求大家帮忙.在使用DataGrid时遇到的问题
- 如何禁用窗体标题栏的关闭按钮
一般用超级链接 http://../GetID.aspx?ID=1111 的形式
也可以用Session["ID"]=1111的办法实现
SqlConnection myConnection = new SqlConnection("server=chen;database=chen;Trusted_Connection=yes");
SqlDataAdapter myCommand = new SqlDataAdapter("select id,title,contant from title where id="&id,myConnection);
myConnection.open;
如果资料库中id是int型别,还应该先转换。