Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7699057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:23:22+00:00 2026-05-31T22:23:22+00:00

I have a one dropdown box in webpage that is with autopostback = true

  • 0

I have a one dropdown box in webpage that is with autopostback = true and one modal popup extender in same webp age.. When i changed the selection and then open modal popup and enter value then close the modal popup.. It will postback and entered value does not display when open modal popup again….How i prevent postback when close modalpopup and getting same value again…
Please help for the same…My code is given below:

<asp:DropDownList runat="server" ID="ddlDBANameFormField" AutoPostBack="true" >
    <asp:ListItem Selected="True" Text="Select"></asp:ListItem>
    <asp:ListItem Text="One"></asp:ListItem>
    <asp:ListItem Text="Two"></asp:ListItem>
    <asp:ListItem Text="Three"></asp:ListItem>
</asp:DropDownList>
<div id="tempHotelStatistic">
    <div id="MainHotelStatistic" style="width: 998px;" runat="server">
        <div style="width: 330px; height: 30px; float: left;" id="RoomsRentedAfterAudit"
            runat="server">
            <div style="width: 150px; float: left;">
                <asp:Label ID="lblRoomsRentedAfterAudit" runat="server" Text="After Audit Rooms:"
                    Width="175px" CssClass="label"></asp:Label>
            </div>
            <asp:UpdatePanel UpdateMode="Conditional" runat="server" ID="UpdatePanel3">
                <ContentTemplate>
                    <div style="width: 150px; float: left;">
                        <table>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtRoomsRentedAfterAudit" runat="server" CssClass="textboxpopup"></asp:TextBox>
                                    <cc1:ModalPopupExtender ID="ModalPopupExtender4" OkControlID="ModalOKButtonRoomsRented"
                                        runat="server" TargetControlID="btnpopupRoomsRented" CancelControlID="btnpopupCancelRoomsRented"
                                        PopupControlID="PanelRoomRented" Drag="true" PopupDragHandleControlID="PopupHeader1" >
                                    </cc1:ModalPopupExtender>
                                </td>
                                <td>
                                    <asp:Button ID="btnpopupRoomsRented" runat="server" Text="...." CssClass="buttonpopup"
                                        Style="color: #333333; margin-left: 0; margin-right: 0; width: 35px;" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="PanelRoomRented" style="display: none;" class="popupConfirmation">
                        <div class="popup_Container">
                            <div class="popup_Titlebar" id="Div3">
                                <div class="TitlebarLeft">
                                    Reason :
                                </div>
                                <div>
                                    <asp:Button ID="btnpopupCancelRoomsRented" class="TitlebarRight " runat="server" />
                                </div>
                            </div>
                            <div>
                                <table>
                                    <tr>
                                        <td valign="top" height="5px">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="bottom">
                                            <textarea id="txtRoomsRentedAfterAuditReason" runat="server" rows="20" cols="20"
                                                style="width: 270px; height: 100px;"></textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" height="5px">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="popup_Container" align="right">
                            <asp:Button ID="ModalOKButtonRoomsRented" runat="server" Width="60px" Text="OK" CssClass="buttonForPopUp" />
                        </div>
                    </div>
                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender111" runat="server" FilterType="Custom,Numbers"
                        ValidChars="-" FilterMode="ValidChars" TargetControlID="txtRoomsRentedAfterAudit">
                    </cc1:FilteredTextBoxExtender>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="btnpopupRoomsRented" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
    </div>
</div>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:23:23+00:00Added an answer on May 31, 2026 at 10:23 pm

    Solved the problem by applying trigger for the update panel , in which modal popup resides…

    <Triggers>
    <asp:PostBackTrigger ControlID="ddlDBANameFormField" />
    </Triggers>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

INSERT MODE i have check box in one tr. and another dropdown control in
i have a time dropdown that shows hour in one select, minutes in another
I have created one dropdown box <select name=select id=selectId> <option id= value=calendar_Second_Calendar_1285942672.xml>Second Calendar</option> <option
In my XSL i have included a dropdown box which have values like, one
I have a dropdown box that has a list of institutions in it. Now
I have a dropdown box that I construct with PHP. Here is the code:
I have added some server side validation to a dropdown box on one of
I have a form on a website that has a dropdown box and instead
HELLO i have one dropdown box and one listbox , my dropdown box values
I sometimes have a dropdown box with only one item to choose from, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.