Modal Popup not Showing RRS feed

  • Question

  • User-797751191 posted


    protected void gvwData_RowCommand(object sender, GridViewCommandEventArgs e)
            if (e.CommandName == "ShowPopup")
                    LinkButton btndetails = (LinkButton)e.CommandSource;
                    GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
                    lblCustomerId.Text = btndetails.CommandArgument.ToString();
                    StringBuilder builder = new StringBuilder();
                    builder.Append("<script language=JavaScript>modalPopup() </script>\n");
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "modalPopup", builder.ToString());
    function modalPopup() {


    Friday, June 28, 2019 7:19 AM

All replies

  • User665608656 posted

    Hi jsshivalik,

    According to your description, you only provide part of the code of your page,  and these code are no problem, I hope you can provide more detailed code to determine where your issue is.

    You can refer to this example : https://forums.asp.net/t/2157025.aspx, which is the result of my previous work based on your issues.

    This demo contains your current issue,I hope it will help you.

    In addition, you need to pay attention to the reference of the jQuery and the CSS files of the page, which I've marked these important points in that demo.

    Best Regards,


    Friday, June 28, 2019 8:50 AM