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 a aspx page which contains the following CheckBoxList. <form id=form1 runat=server> <asp:CheckBoxList
I have a page with an updatepanel which contains a small login form -
I have a page which contains a html.RenderPartial, that renders an ASP.NET MVC partial
I have a page which contains a jQuery-UI horizontal slider, created using a little
I have a child page LoginContent.aspx which contains a login form. If the user
I have an ASP.net page which contains some controls. I generate this controls by
If I have an MVC3 ASP.net page which contains a the model iEnumerable<mymodel.CarsForHire> -
- I'm using ASP.NET 3.5 . I have a page in which i want
I have an asp.net content form which contains a couple of textboxes. I need
I have a custom search control on my page (asp.net) which contains a textbox

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.