if (e.CommandName == "update")
{
int id = Convert.ToInt32(e.CommandArgument.ToString());
} 到了这一步如何弹出一个showModelDialog把ID 传过去?
{
int id = Convert.ToInt32(e.CommandArgument.ToString());
} 到了这一步如何弹出一个showModelDialog把ID 传过去?
然后在弹出的Url的后台用Request来获取
例如
window.showModalDialog("DialogPage.aspx?ID=YourID");
在GridView中点击一个按钮,而不是一个普通的按钮也是一样的吗.
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "update")
{
int id_update = Convert.ToInt32(e.CommandArgument.ToString());
}
}我现在就做到这一步了,下一步怎么弄?
if (e.CommandName == "update")
{
int id = Convert.ToInt32(e.CommandArgument.ToString());
}