麻烦来个。net高手
String strsql = "update USA set NAME='"+NAME.Text+"',CITY='"+CITY .Text+"' ,
STATE='"+STATE .Text+"'where userid="
+datagrid.DataKeys[e.Item.ItemIndex];
这段代码 貌似 有 格式 错误 我 找不到了
这是段 UPDATE 语句 怎么改都有问题
麻烦 看下 最好帮我改改 谢谢 **** 作者被禁止或删除 内容自动屏蔽 **** [quote]原帖由 [i]很陈很冠希[/i] 于 2008-4-11 10:02 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9031400&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]
小站很强大!什么都来问!
但是我看不懂你写的东西 -0- [/quote]
卖腊肠的你知道不? string strsql="update usa set name='"+name.text+"',city='"+city.text+"',state='"+state.text+"' where userid="+datagrid.datakeys[e.item.itemindex]; 不要随便换行,要换行就在+号的位置换,其他位置换不行的 **** 作者被禁止或删除 内容自动屏蔽 **** 3q3Q
强人 [quote]原帖由 [i]loveya[/i] 于 2008-4-11 10:05 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9031416&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]
不要随便换行,要换行就在+号的位置换,其他位置换不行的 [/quote]
太谢谢 你了 呵呵 无法将类型为“System.Web.UI.WebControls.DataGridLinkButton”的对象强制转换为类型“System.Web.UI.WebControls.TextBox”。 这是什么意思哇 三狼懂的 他能用VB.NET作a片出来 [color=Purple]去csdn问远比在这里好- -
我菜鸟起飞的阶段天天泡在csdn[/color] [quote]原帖由 [i]某貓[/i] 于 2008-4-11 13:49 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9032219&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]
去csdn问远比在这里好- -
我菜鸟起飞的阶段天天泡在csdn [/quote]
问下你 起飞了吗 知道这问题吗 有点急啊 ~~
呵呵 [quote]原帖由 [i]所罗门[/i] 于 2008-4-11 13:46 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9032204&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]
三狼懂的 他能用VB.NET作a片出来 [/quote]
wo cao ni da ye
wo shi wen mang [quote]原帖由 [i]所罗门[/i] 于 2008-4-11 13:46 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9032204&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]
三狼懂的 他能用VB.NET作a片出来 [/quote]
这他妈可是我们公司机密,你怎么知道的
回复 #14 豆腐 的帖子
那天把你灌醉了 你告诉我的 [quote]原帖由 [i]ayamain[/i] 于 2008-4-11 12:47 发表 [url=http://bbs.rohome.net/redirect.php?goto=findpost&pid=9031995&ptid=887232][img]http://bbs.rohome.net/images/common/back.gif[/img][/url]无法将类型为“System.Web.UI.WebControls.DataGridLinkButton”的对象强制转换为类型“System.Web.UI.WebControls.TextBox”。 这是什么意思哇 [/quote]
没学过.NET
但是很明显系统把你的datagrid.datakeys[e.item.itemindex];中e.item.itemindex取得的对象读成DataGridLinkButton了...而你需要的应该是TextBox对象...换言之...很可能数错顺序了...
页:
[1]