前台:<asp:Panel ID="Panel1" runat="server" BorderWidth="0px" Visible="False" Width="100%">
www
</asp:Panel >
点击按钮 想让这个层显示
protected void Duty_gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ImageButton TempIB_Mod = (ImageButton)e.Row.FindControl("lb_mod");
TempIB_Mod.CommandName = "Duty_Mod";
TempIB_Mod.CommandArgument = e.Row.RowIndex.ToString();
后台
:
protected void Duty_gv_RowCommand(object sender, GridViewCommandEventArgs e)
{
int index = Convert.ToInt32(e.CommandArgument.ToString());
GridViewRow GvRow = Duty_gv.Rows[index];
SqlCommand cmd = DbClass.getCMD();
switch (e.CommandName)
{ case "Duty_Mod":
try
{
this.Panel1.Visible = true;
值可以传过来,但层就是不显示
www
</asp:Panel >
点击按钮 想让这个层显示
protected void Duty_gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ImageButton TempIB_Mod = (ImageButton)e.Row.FindControl("lb_mod");
TempIB_Mod.CommandName = "Duty_Mod";
TempIB_Mod.CommandArgument = e.Row.RowIndex.ToString();
后台
:
protected void Duty_gv_RowCommand(object sender, GridViewCommandEventArgs e)
{
int index = Convert.ToInt32(e.CommandArgument.ToString());
GridViewRow GvRow = Duty_gv.Rows[index];
SqlCommand cmd = DbClass.getCMD();
switch (e.CommandName)
{ case "Duty_Mod":
try
{
this.Panel1.Visible = true;
值可以传过来,但层就是不显示
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货