为什么asp.net按钮不适用于模态弹出窗口?

时间:2016-04-13 09:09:02

标签: c# asp.net ajax c#-4.0 modal-dialog

我在ajax更新面板中的asp.net页面中使用了AJAX MODAL POPUP。

当我从gridview调用它时,即通过链接按钮调用rowcommand事件。

mdlAuthorizedEntities.Show();

但是当通过gridview外面的asp按钮调用时,同样的模态不起作用。

 <asp:LinkButton ID="ImgbtnAddMoreEntities" Visible="true" tyle="display:none;"  CssClass="plus" Text="add" OnClick="ImgbtnAddMoreEntities_Click" runat="server" />

的.cs:

   protected void ImgbtnAddMoreEntities_Click(object sender, EventArgs e)
    {
        try
        {
            mdlAuthorizedEntities.Show();
        }
        catch (Exception ex)
        {
            ResultLabel.ResultLabelAttributes(ex.Message, ProjectUserControls.Enums.ResultLabel_Color.Red);
        }
        finally
        {
            ResultPanel.Controls.Add(ResultLabel);
        }
    }

.modal

                                                                         

0 个答案:

没有答案
相关问题