Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Button on AJAXModalPopup not firing the event

Button on AJAXModalPopup not firing the event

Scheduled Pinned Locked Moved ASP.NET
databasedesignsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anada8886
    wrote on last edited by
    #1

    In my aspx page,I have a modal popup,on which there is a textbox and a button. On click of the button(button_click()) ,I have written the code to save the textbox content to database.Everything seems like a simple scenario. But somehow,when I click the button on the modal popup, it is not firing any event. I have done the same thing on some other pages also and there it is working properly. This is my design code :

    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="addComment_lnk"
    BackgroundCssClass="modalBackground" PopupControlID="Panel1">
    </ajaxToolkit:ModalPopupExtender>
    <asp:LinkButton ID="btn_hide" runat="server"></asp:LinkButton>
    <asp:Panel ID="Panel1" CssClass="popBox" runat="server" Style="display: none">
    <div>
    <p style="text-align: center">
    <table>
    <tr>
    <td class="title">
    Post Comment :
    </td>
    </tr>
    <tr>
    <td>
    <asp:TextBox ID="comments_txt" CssClass="popInput" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Button ID="post_btn" CssClass="button buttonGreen floatRight" OnClick="post_btn_Click"
    runat="server" Text="Post" />
    <asp:Button ID="cancel_btn" CssClass="button buttonGray floatRight" runat="server"
    Text="Cancel" />
    </td>
    </tr>
    </table>
    </p>
    </div>
    </asp:Panel>
    <asp:LinkButton ID="addComment_lnk" runat="server">Add Comment</asp:LinkButton>

    Can anyone please suggest any possible reasons for the button not firing event. Thank You.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups