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 6830611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:38:17+00:00 2026-05-26T22:38:17+00:00

I have a stock jQuery dialog div with a data entry usercontrol wrapped in

  • 0

I have a stock jQuery dialog div with a data entry usercontrol wrapped in a updatepanel. It looks great until the first postback. After which there are no styles applied at all. (controls retain their values and events continue to operate as expected.) After closing the dialog subsequent .dialog(“open”) calls have no styles applied if there had been a postback.

    $(function () {
        var dlg = jQuery("#EventMod").dialog({
            autoOpen: false
            , modal: true
        });
        dlg.parent().appendTo(jQuery("form:first"));  

        $(".NewEvent").click(function () {
            $("#EventMod").dialog("open");
            return false;
        });
    });

The dialog div is here:

<div id="EventMod" title="Event Modify" class="ui-helper-hidden">
    <asp:UpdatePanel ID="updNewEvent" runat="server">
        <ContentTemplate>
            <uc1:EventEdit ID="NewEvent" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
</div>

In the usercontrol Classes are NOT assigned dynamically they appear like this:

    <table class="NewEvent" >
        <tr>
            <td align="center">
                <table class="Event">
                    <tr class="Title">
                        <th width="55">
                            <strong>Event #</strong>
                        </th>
    ... snip ...

I have the stylesheet linked in the parent page. I tried adding it to the usercontrol as well with no visible results.

  • 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-26T22:38:18+00:00Added an answer on May 26, 2026 at 10:38 pm

    I had weirdness like this before and had to do this to get stable results within an UpdatePanel:

       $(function () {
    
            var titleText="This is the title"
            var key = "uniqueId";
            var newParentDiv= "#" + key;
            var div = $("<div title='" + titleText + "' id='" + key+ "'></div>");
            $('body').append(div);
            $(newParentDiv).html($("#EventMod").html());
    
            var dlg = jQuery(newParentDiv).dialog({
                autoOpen: false
                , modal: true
            });
            dlg.parent().appendTo(jQuery("form:first"));  
    
            $(".NewEvent").click(function () {
                $(newParentDiv).dialog("open");
                return false;
            });
       });
    

    The problem for me was that jQuery dialog actually moves your content to a new location in the DOM. If a partial postback happens that doesn’t update the DOM where jQuery UI put the dialog it becomes stale or hangs around.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery UI dialog for modal popups. I have some iframes in
I'm trying to position a dialog in jQuery and I have the following code.
On my web page I have a button that opens a modal jQuery dialog.
I'm a noob in jQuery and have stuck at this. I have the following
I have the following html where I use the jquery after method() to stick
I have two entities STOCK(name,amount) and PC_SYSTEMS(name,c_name), and i wish to update the components
need help/guide for sql select query, I have 2 table stock and stock_history, in
I have a table called Stock and another called Listed, within the Stock Table
I have 2 tables like this: Stock Table product_id bigint(20) qty float Sales Table
I have an xts sequence of stock trade events that I want to process

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.