locked
Pop Window RRS feed

  • Question

  • User29410129 posted

    Want to show pop window that contain texbox and take value from user and send to backend of page? waiting for your feedback

    Tuesday, December 22, 2015 9:05 PM

Answers

  • User61956409 posted

    Hi DanyalHaider,

    Want to show pop window that contain texbox and take value from user and send to backend of page? waiting for your feedback

    The following sample is for your reference.

    <asp:Button ID="btnopen" runat="server" Text="OpenModal" />
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnopen" PopupControlID="Panel2"></asp:ModalPopupExtender>
    <asp:Panel ID="Panel2" runat="server">
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><asp:Button ID="btnok" runat="server" Text="OK" OnClick="btnok_Click" />
    </asp:Panel>
    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
    
    protected void btnok_Click(object sender, EventArgs e)
    {
        Label1.Text = TextBox2.Text.ToString();
    }
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 23, 2015 3:14 AM