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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:18:40+00:00 2026-05-14T21:18:40+00:00

I have a page which contains an ASP UpdatePanel, and within the UpdatePanel, there

  • 0

I have a page which contains an ASP UpdatePanel, and within the UpdatePanel, there is a button styled using Dojo with a dojoType of dijit.form.Button.

When the UpdatePanel updates, the button loses all of the CSS styling, so it reverts back to an ordinary looking html button.

I’m presuming this is because the dojo methods don’t get called on a partial page postback, causing the button to get redrawn by the server and posted to the page, and dojo not being told about any of this.

Also, the “dojo/method” script is no longer associated with the button after the update.

This is the button:

<button id="btnShowMessages" dojoType="dijit.form.Button" type="button">
    Show failure messages
    <script type="dojo/method" event="onClick" args="evt">
        dijit.byId("dlgFailedMessages").show();
    </script>
</button>

This is wrapped in a standard ASP UpdatePanel with an ASP LinkButton causing the update (also located within the UpdatePanel, so nothing is required in the <Triggers> tag).

Is there any way of making dojo aware of the partial page update? So that the button keeps it’s style and dojo is still able to attach the method to the button.

  • 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-14T21:18:40+00:00Added an answer on May 14, 2026 at 9:18 pm

    Here is a solution:

    http://www.codeproject.com/KB/ajax/Dojo-AjaxDotNet.aspx

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

Sidebar

Related Questions

I have built a web page which contains a Crystal Report built using the
I have a panel on an aspx page which contains an UpdatePanel. This panel
I have a web page which contains a select box. When I open a
I have a page P1 loading from site S1 which contains an iframe. That
I have an HTML page (say welcome.html) which contains an iframe to a page
In a particular page i have a ascx control which contains a table. Now
We have a PageRoles xml file which contains the page path and the user
I have a page which spawns a popup browser window. I have a JavaScript
I have a page which does quite a bit of work and I don't
I have a page which is largely created by DOM script, which generates a

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.