Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP:NET
Hi,
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
this.ModalPopupExtender1.Show();
my popup div as follow
<div>
    <div>
        <asp:Button ID="Button1" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="ModalPopupExtender2"  runat="server" TargetControlID="btnShowPopup"
            PopupControlID="pnlpopup" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
        </cc1:ModalPopupExtender>
        <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">
                    <tr>
                        <td class="normaltd" nowrap="nowrap" style="width: 100px; text-align: left; padding-left: 10px;
                            padding-top: 5px;">
                        Company
                        </td>
                        <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">
                            </asp:ComboBox>
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
    </div>
 
</div>
 
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 ?
Posted 20-Nov-12 17:27pm
Edited 20-Nov-12 18:43pm
Tadit Dash85.6K
v3

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 808
1 OriginalGriff 493
2 sanket saxena 329
3 Tadit Dash 315
4 Peter Leow 228
0 Sergey Alexandrovich Kryukov 11,990
1 OriginalGriff 7,349
2 Peter Leow 5,003
3 Abhinav S 4,003
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web01 | 2.8.140421.2 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid