Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
on click on ID="lnkOptions", I am execututing void options_Click(object sender, EventArgs e),in that at last I called Option_ModalPopupExtender.Show() =which cause popupwindow shows.nut it is not working.
help plz.
ASP.NET
<asp:TemplateField>
<itemtemplate>
   <asp:LinkButton ID="lnkOptions" CausesValidation="false" runat="server" OnClick="options_Click" Text="Option">
</itemtemplate>

C#
protected void options_Click(object sender, EventArgs e)
{
    try
    {
        gvrow = (GridViewRow)((LinkButton)sender).Parent.Parent;

        Load_Options_Panel();
        flagQueryReDesign = 1;
        BindGrid();
        //Display Options Panel popup
        Option_ModalPopupExtender.Show();
    }
    catch (Exception ex)
    {
        //////ExceptionClass.LogException(ex, "Configure.cs");
        //Could not select the clicked row
        //Could not Load the Modal Popup After user clicks the option button
    }
}

ASP.NET
<asp:Label ID="btnShowPopup" runat="server" Style="display: none">
<AjaxControlToolkit:ModalPopupExtender BackgroundCssClass="modalBackground" ID="Option_ModalPopupExtender"
       runat="server" TargetControlID="lnkOptions" PopupControlID="OptionPanel" CancelControlID="OptionPanel_Button_Cancel">
Posted
v2
Comments
[no name] 8-Dec-15 23:47pm    
You have posted the same question twice. To keep the forum working properly delete the one you don't want.
Kishor-KW 8-Dec-15 23:54pm    
ok, I did, Thank you.
Did you debug?
Sinisa Hajnal 9-Dec-15 6:56am    
Some questions:
1. Does your click enters the handler? Set a breakpoint in click handler and check that it is called
2. AjaxToolkit has problems if the calling code is within update panel. Try the same code in some test page that contains only relevant code (single link button and popup extender)
3. Check that you're not returning false from any client-side handlers (in that case your server side handler would not be called.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900