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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:42:47+00:00 2026-05-13T16:42:47+00:00

I am using BlockUI to show a modal. Within the blocked modal I have

  • 0

I am using BlockUI to show a modal. Within the blocked modal I have an update panel. Within the update panel I have a textbox and a button that submits the content back to the server. Everything works fine up to this point (the blockUI is called, the modal appears, and the button performs the postback). However, when the button’s click event is fired the value for the textbox is consistently empty even if text was entered. When the update panel updates the textbox shows up blank. It appears that this may be some sort of viewstate issue and I haven’t turned off viewstate.

<a href="javascript:$.blockUI({ message: $('#divTest') });">SHOW MODAL</a>

<div id="divTest" style="display: none;">
<asp:UpdatePanel ID="upTest" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        <asp:TextBox ID="txtTestVS" runat="server" /><br />
        <asp:Button ID="cmdTest" Text="TEST" OnClick="cmdTest_Click" UseSubmitBehavior="false" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>

SERVER-SIDE:

protected void cmdTest_Click(object sender, EventArgs e)

{
string x = txtTestVS.Text;
}

String “x” always equal “”.

  • 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-13T16:42:47+00:00Added an answer on May 13, 2026 at 4:42 pm

    This is a common problem with dialog plug-ins, the problem is when content is put in the blockUI container, it’s appended to the <body> element, and no longer in the form being submitted to the server. To solve this you need to edit the blockUI code a bit:

    Here’s the source: http://github.com/malsup/blockui/blob/master/jquery.blockUI.js

    Change this:
    Line 262: var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
    to: var layers = [lyr1,lyr2,lyr3], $par = full ? $('form') : $(el);

    and this:
    Line 382: els = $('body').children().filter('.blockUI').add('body > .blockUI');
    to: els = $('form').children().filter('.blockUI').add('form > .blockUI');

    That should get you going and the textbox values coming through.

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

Sidebar

Related Questions

I have an update panel within a div that I modal using the JQuery
I'm using $.blockUI with jQuery to show a modal dialogue. The HTML looks like:
i am using blockUI to show content in modalbox. On my content page there
I'm using jQuery BlockUI plugin, and i have been able to sucessfully show a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
i have long running task that gets called using jquery ajax. i am using
i have a long ajax call so i am using blockui like this .
Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page.
i am using jquery BlockUI Plugin. i looking for a way to have callback
How can I test if some div is blocked ? I'm using BlockUI plugin.

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.