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

  • Home
  • SEARCH
  • 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

so I have a modal dialog i use with jQuery in my asp .net
Ok, I am new to JQuery, I have a modal that has a asp:Literal
I have a JQuery modal popup form on a classic ASP page. It's set
I have a textarea element inside of a jquery modal dialog that has an
I have a form inside a jquery ui modal dialog, when I click the
I have to build a registration form using asp.net mvc 3 jquery validate. That
I have a problem with Jquery UI modal dialogs. I have modal dialog (dialogA),
I have a modal dialog plugin written in jquery, that binds to the click
I have been looking at jQUery thickbox for showing modal dialogs with images, it
I have a asp.net MVC app and I'm trying to get the jqgrid 3.5

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.