无法将类型为“System.Web.UI.LiteralControl”的对象强制转换为“System.Web.UI.WebControls.DropDownList”。 [英] Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.DropDownList'.?
本文介绍了无法将类型为“System.Web.UI.LiteralControl”的对象强制转换为“System.Web.UI.WebControls.DropDownList”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从gridview插入记录时收到错误
此行中的
hi am getting error while inserting records from gridview
in this line
cmd.Parameters.Add("@Project", SqlDbType.VarChar).Value = ((DropDownList)GridView1.Rows[0].Cells[2].Controls[0]).SelectedItem.Text;
任何人都可以在保存记录到sql的同时监视这行中的问题??
谢谢..
can anyone telme what is the issue in this line while saving records to sql??
thank you..
推荐答案
http://forums.asp.net/t/1228689.aspx/1 [ ^ ]
这篇关于无法将类型为“System.Web.UI.LiteralControl”的对象强制转换为“System.Web.UI.WebControls.DropDownList”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文