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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:50:32+00:00 2026-05-18T03:50:32+00:00

I have a modal with JQuery UI tabs inside. There is a ASP.NET checkbox

  • 0

I have a modal with JQuery UI tabs inside. There is a ASP.NET checkbox list server control in one of the tabs. I am facing a weird issue that if I set toTop:true in JQModal parameters

    $(document).ready(function() {
  $('#testDiv').jqm({toTop: true});

});

when I run a server side foreach on the checkbox list it always returns false on all items. Even though if they are selected/checked by user on screen ._.

foreach (ListItem li in cbItems.Items)
    {
        if (li.Selected) // <= Always false ???
        {
            DataRow dr = dt.NewRow();
            dr["ID"] = Convert.ToInt32(li.Value.ToString());
            dr["ITEMNAME"] = li.Text.ToString();
            dt.Rows.Add(dr);
        }
    }

Removing toTop from the JQModal parameters solves the problem but creates another problem that in IE7 my JQ modal window is behind the overlay of modal, which might be due to the container div having CSS position:relative. Any clue guys ?
alt text

  • 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-18T03:50:32+00:00Added an answer on May 18, 2026 at 3:50 am

    My guess is that when you set the toTop option JQModal is taking your div that contains the checkbox list and attaching it to the BODY tag instead of its normal position in the DOM. Since it is no longer inside the FORM tag, then when you do the postback those values are lost.

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

Sidebar

Related Questions

I am using ASP.NET MVC 2. I have a modal dialog (done through jquery
Ok, I am new to JQuery, I have a modal that has a asp:Literal
Anyone have any experience creating a modal dialog box using AJAX and ASP.NET MVC?
I have the following ASP.NET code: <div id=panelIssue runat=server style=width: 450px; height: 320px;> <gsl:IssueUC
I have been looking at jQUery thickbox for showing modal dialogs with images, it
I like to have a popup modal dialog that need to show the list
Is it possible to create/have a non-modal .net OpenFileDialog I have a UI element
I have a modal dialog (done through jquery UI) that submit a form to
Let's explain the context: I have a person form inside a jquery dialog that
I have jquery modal that works perfectly fine. But after closing this modal and

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.