Click here to Skip to main content
12,997,441 members (72,846 online)

modalpopup getting dissappear when press enter botton.

aassaahh asked:

Open original thread
I have a gridview when I click on grid view row a modal popup is getting open.
I have wriiten code to open popup in codebehind as
my popup div as follow
        <asp:Button ID="Button1" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="ModalPopupExtender2"  runat="server" TargetControlID="btnShowPopup"
            PopupControlID="pnlpopup" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
        <asp:Panel ID="Panel1" runat="server" BackColor="White" Style="display: none">
            <div style="width: 400px; background-color: White; padding: 20px; border: Solid 1px gray;
                box-shadow: 10px 10px 10px #5d5d5d">
                <table style="border: Solid 0px gray; background-color: #EAEAEA; width: 400px; height: 350px;"
                    cellpadding="0" cellspacing="0" border="0">
                        <td class="normaltd" nowrap="nowrap" style="width: 100px; text-align: left; padding-left: 10px;
                            padding-top: 5px;">
                        <td nowrap="nowrap" style="width: 300px; text-align: left;" valign="top">
                            <input id="Hidden1"  runat="server" type="hidden" />
                            <asp:ComboBox ID="ComboBox1" runat="server" CssClass="comboInsideModal" AutoCompleteMode="Suggest"
                                Width="250" ValidationGroup="S">

The popup div contains a ajax combobox editable dropdown.
Whenever user press enter to select item from the combobox ,the modalpopup gets dissapear. How to solved this problem ?


When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100