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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:07:26+00:00 2026-06-02T13:07:26+00:00

From the jquery UI you can now apply .button() to an anchor, a button,

  • 0

From the jquery UI you can now apply .button() to an anchor, a button, a submit button etc.
I’ve got a simple asp.net button that looks like this:

<asp:Button ID="btnFindSearch" runat="server" Text="Search" 
                        onclick="btnFindSearch_Click" />

It is however inside of an updatepanel like so:

 <div id="dialog" title="Select Address">
        <asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
        <ContentTemplate>
            <div id="search" style="width:100%; text-align:center;">
                <asp:TextBox ID="txtFindSearch" runat="server"></asp:TextBox> 
                <asp:Button ID="btnFindSearch" runat="server" Text="Search" 
                    onclick="btnFindSearch_Click" />
            </div>
        </ContentTemplate>
        </asp:UpdatePanel>
        </div>

In my jquery I can do:

$('#btnFindSearch').button();

And it gives me the jquery ui look of a button…awesome I thought. But the minute I click my button the button returns to the plain old looking asp.net server button. Its as if the .button() is no longer applied.

Is this due to the fact that it is inside an UpdatePanel or what could be causing this???

  • 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-02T13:07:28+00:00Added an answer on June 2, 2026 at 1:07 pm

    This can be done with the jQuery livequery plugin.

    It can be used to define a function for all the elements what are currently in the dom and those which wud be added later.. that would solve most of your problems.

    Here is an example usage:

    $("#btnFindSearch").livequery(function(){$(this).button();})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help? I have an issue with calling a asp.net webservice from jquery..
I have code that I pass from jQuery to my ASP.Net MVC controller and
I want to call a webservice from jQuery. How can I do that?
With jQuery UI you can set icons from the framework on button, i want
I know from here that I can pass an ignore option in the jQuery.validate
JS library like JQuery can be linked directly from other site (e.g. google). Usually
How can I remove the animation from this jQuery modal window? You can see
How can I do this in Javascript/jQuery from PHP? I am trying to populate
I can't get the jQuery datepicker to work. I have followed everything from the
how can i parse the particular 'li' field from the following using jquery template?

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.