跟代码,检查 e.CommandArgument 的值及前台绑定.
解决方案 »
- 循环 PagedDataSource
- 关于postback
- 管理员在哪?我要投诉这个人没有正确给分!
- “应输入class、delegate、enum、interface或struct”这是什么意思?---已经贴上代码,请指教!
- 很弱的一个javascript与c#混合编程的问题
- 刚学ASP.NET,帮忙解决一个小问题
- 关于判断,然后显示不同网页内容的问题!
- 对话框问题
- saucer,attention please!how to write setup project for a large enterprise template project much like : "Duwamish"
- datagrid的小问题。大家帮帮我吧!别没人回答啊!
- 关于自定义类的引用
- 用什么方式可以取客户端唯一的标识
其中 JobID 应为 GridView 主键列
----------------------------------------------
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridView1.SelectedIndex = Convert.ToInt32(e.CommandArgument);
if (e.CommandName == "modify")
{
int JobID = Convert.ToInt32(GridView1.SelectedValue)];
}
}