关于girdview中更新时出现的问题
stringUID=User_List.DataKeys[e.RowIndex].Value.ToString();stringname=((TextBox)User_L...
string UID = User_List.DataKeys[e.RowIndex].Value.ToString();
string name = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UName")).Text;
string Password = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UPassword")).Text;
string Power = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UPower")).Text.Trim().ToString();
string sqlstr = "Update users Set UName='" + name + "',UPower= '" + Password + "',UPower= '" + Power + "' where UID='"
+ UID + "' ";运行时出现"未将对象设置到对象的实例",请问是怎么回事呢? 展开
string name = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UName")).Text;
string Password = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UPassword")).Text;
string Power = ((TextBox)User_List.Rows[e.RowIndex].FindControl("UPower")).Text.Trim().ToString();
string sqlstr = "Update users Set UName='" + name + "',UPower= '" + Password + "',UPower= '" + Power + "' where UID='"
+ UID + "' ";运行时出现"未将对象设置到对象的实例",请问是怎么回事呢? 展开
2个回答
展开全部
应为你提供的资料太片面性了,没法解决,提供你一个学习地址:
GridView 72般绝技
http://blog.csdn.net/dqjqsuperboy/archive/2007/05/23/1621792.aspx
GridView 72般绝技
http://blog.csdn.net/dqjqsuperboy/archive/2007/05/23/1621792.aspx
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询