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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:03:23+00:00 2026-05-13T14:03:23+00:00

Background: I’m using jquery blockui 2.31 on jquery 1.3.2, on ASP.NET 2.0. I’m using

  • 0

Background:

I’m using jquery blockui 2.31 on jquery 1.3.2, on ASP.NET 2.0.

I’m using the dialog to show a (normally) hidden DIV as sort of a pop-up modal dialog, with ASP.NET server side controls in it (for simplicity’s sake, an asp:Button). There’s no AJAX, or not guaranteed to be any.

One of the things jquery blockui does, if you pass it some html elements–is it will remove the control from its place in the page, and append it to the body.

ASP.NET 2.0 seems to want controls that post back to be in the form you can find with $(#aspnetForm). jquery blockui just moved them to the body, so the postback never fires.

The method is an instance method and probably won’t work well as static (references logged in user and page controls…)

I’ve done some digging:

I modified jquery blockui to append to the form (and wrestled with the selector to remove the block) but it borks IE6 and IE7–the overlay starts at the form and the entire dialog appears off-center. Hiding the overlay is not an option, and I really hate messing with IE-specific css & IE-specific script.

I tried appending some layers to the body and some to the form, but the body layers always show on top of the form layers (so the opaque layer that blocks input will also block the input on the div I’m trying to show).

I’m thinking the solution is in having the div call a hidden dummy anchor to execute the original button’s postback. sontek suggested this in his answer to a related question.

My actual question:

Am I on the right track with the fake postback trick? I suppose that if I’m relying on jquery for modal dialog functionality I shouldn’t be worried about fallback.

Or, should I continue to muck about with the styling of the form addition?

  • 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-13T14:03:23+00:00Added an answer on May 13, 2026 at 2:03 pm

    You’re pretty much stuck putting the tags back within the form tag if you want normal asp.net behavior such as the events to fire.

    That being said, if you are stuck on using the jQuery modal, I don’t think triggering the postback is such a bad thing. As you mentioned from the linked/related question, you can get the postback reference GetPostBackEventReference in your code-behind and pass in the control who’s event you want to fire, such as:

    //assuming your button is btnMyButton and
    Page.ClientScript.GetPostBackEventReference(btnMyButton, null);
    

    You could attach this javascript call to any other button, including the button you’re moving around outside the form tag. This will essentially wireup the postback and raise that control’s events as usual.

    Not the most elegant solution but I think you’re on the right track with it if you need to use jQuery modal.

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

Sidebar

Ask A Question

Stats

  • Questions 301k
  • Answers 301k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can try DateTime.ParseExact("091223", "yyMMdd", CultureInfo.InvariantCulture); EDIT Woops, sorry, didn't… May 13, 2026 at 8:11 pm
  • Editorial Team
    Editorial Team added an answer $heights=array(); for ($i=5;$i<=7;$i++){ for ($j=0;$j<=12;$j++){ $heights[''.$i.'.'.$j.''] = $i.'\' '.$j.'\'\''; }… May 13, 2026 at 8:11 pm
  • Editorial Team
    Editorial Team added an answer Seeing through issues like this requires some experience on where… May 13, 2026 at 8:11 pm

Related Questions

In order to apply a triggered animation to all ToolTip s in my app,
Background: I have a little video playing app with a UI inspired by the
Background: I need to reserve an amount of memory below 0xA0000 prior to my
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background I have a massive db for a SharePoint site collection. It is 130GB

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.