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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:54:30+00:00 2026-06-06T18:54:30+00:00

I have a DDL and Button which when clicked create a dynamic table; all

  • 0

I have a DDL and Button which when clicked create a dynamic table; all controls are within an UpdatePanel.

Outside the panel I have 2 buttons which should be hidden until the table is created.
If the buttons start as visible = false and then I set them to true after I click the GO button from the UpdatePanel, they never become visible

If I add a second UpdatePanel and put the 2 buttons in there it sort of works but I always get this error when clicking on either button:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: 
The message received from the server could not be parsed.

How to fix that?

  • 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-06-06T18:54:31+00:00Added an answer on June 6, 2026 at 6:54 pm

    Move the two Buttons inside Update Panel. Only controls in the update panel get updated in an Ajax call. That is, if you want to alter any control’s state through codebehind in an Ajax call you will have to include it inside your Update panel. You cannot change controls outside Update panel in an Ajax call.

    UPDATE
    You need event handlers for this. Make the Button visible=true; and set their visibility:hidden, then change them as below when your call is completed.

    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandle);
          Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandle);
          function beginRequestHandle(sender, Args) {
          //Do something when call begins.
            }
    
    function endRequestHandle(sender, Args) {
    document.getElementById("Button1").style.visibility = "visible";
    document.getElementById("Button2").style.visibility = "visible";
    }
          </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have an array of table DDL queries and I want to get
I have a formview on my aspx page containing various controls arranged using table.
I have a scenario where i want : To create a data class which
Q: I have a RequiredFieldValidator on my page ,when i click the button which
I have a State DDL and a Country DDL. I have CascadingDropdown controls for
I have a ddl which is populated with hours of day 01-23. This is
I have a Country table which has CountryName column. I need a ready made
I have a repeater that has multiple dropdown lists and multiple buttons. Each button
I have a script that generates DDL scripts to define materialized views for a
I have parametrized persistence.xml. I am trying to generate ddl schema using hbm2ddl. How

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.