大家下午好?
如题,搞了一天了.找了很多东西,就是解决不了.
再哪个事件中写啊?如果在模板列中该怎么去呢?谢谢!
如题,搞了一天了.找了很多东西,就是解决不了.
再哪个事件中写啊?如果在模板列中该怎么去呢?谢谢!
解决方案 »
- 集合已修改;可能无法执行枚举操作--checkboxlist修改ListItem后,使用foreach操作报错
- word文件怎么读取出来显示在.aspx页面里
- 关于ASP.NET AJAX 中TIMER的问题50分送上.
- 网站项目的.suo文件是做什么用的?
- Datagrid显示问题。
- web.cnofig文件中报错"authentication mode="Forms",请问如何解决!!
- 菜鸟问一个超菜的问题
- 请教一个关于用户控件的Session的问题
- 如何获得当前路径啊
- datagrid动态改变一行的背景色this.DataGrid1.Items[oldselectindex].backcolor=System.Drawing.Color.Red;为什么不工作啊?
- 请问各位大哥,怎么在ASP.NET中访问SQL中的存储过程??谢谢大家!!
- 新手上路,请教各位我为什么打不开SQL SERVER数据库呢
模版列用FindControl
example: 模版列中有一个隐藏控件 (this.GridView.Rows[i].FindControl("id") as HiddenField).Value
发2:e.Row.Cells[1].Text
都不行啊?
texbox1.Text = GridView1.Rows(GridView1.SelectedIndex).Cells(1).Text
End Subcells(1)取得第二个单元格的值 .自己修改下就可以
HtmlInputChecked ckball= null;
string strUserCode="";
foreach (GridViewRow gdVRow in GView.Rows)
{
ckball= (HtmlInputChecked )gdVRow.FindControl("ckball");
if(ckball.checked==true)
{ if(strUserCode=="")
{strUserCode=ckball.value;}
else
{strUserCode+=","+ckball.value;} }