DataGrid中有ButtonColumn,CommandName="delete"
同时页面中有一个button,在page_load()中设置
if (Not IsPostBack) then
button1.visible=false
end if
想单击DataGrid中的ButtonColumn而使Button1.visible=true
该如何实现
望指教,谢谢
同时页面中有一个button,在page_load()中设置
if (Not IsPostBack) then
button1.visible=false
end if
想单击DataGrid中的ButtonColumn而使Button1.visible=true
该如何实现
望指教,谢谢
{
if (e.CommandName == "delete")
{
Button l = (Button)e.Row.FindControl("Button1");
l.Visible=false
}
}
你要改一下,我用的是studio2005直接使用的是Gridview 希望有指导意义.错了莫怪(注意大小写,我是手写的)