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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:26:46+00:00 2026-05-18T00:26:46+00:00

I can’t get my tabs working, no mater what I do. Demo is very

  • 0

I can’t get my tabs working, no mater what I do. Demo is very simple and straight forward but i must missed something.
CSS is applied and $("#pnlTabs").tabs(); function is called but nothing happens.

Please help me, this JS drives me nuts.

EDIT:

here is the link to zip file with complete solution http://dl.dropbox.com/u/12791555/HelpDeskControls.zip

EDIT2:

Just one more question. When You click “services” or “events” tab is it possible that function from codebehind is called ? Let’s say that when I click on events tab, same function gets called that when I click on “Load” 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-18T00:26:47+00:00Added an answer on May 18, 2026 at 12:26 am

    I suspect that ID mangling might be the cause here.

    Change your script to this and try again

    $(function () {
        $('#<%=pnlTabs.ClientID %>').tabs();
    });
    

    Since the HTML specification requires element IDs to be unique within the DOM, the ASP.NET framework attempts to avoid the possibility of duplicate IDs appearing by rewriting the IDs that you assign to server controls in the page. If you think about it, this makes sense to some degree, as using controls such as the gridview for example, where you have a server control with an ID which you would like to repeat for each item in the datasource, you wouldn’t want the ID to also repeat as this will result in invalid HTML.

    Any control that is decorated with the INamingContainer interface creates a new ID namespace which will result in element ID mangling on the client side.* Using the markup given above, we can have the ID that will be generated in the response sent to the client outputted into the page into the jQuery function call.

    *ASP.NET 4 can be set to not mangle IDs, at your own peril!

    EDIT:

    I’ve had a look through your demo code and all is working as intended – the tab event handlers are being bound correctly to the list elements which when clicked are applying the correct CSS classes to the div elements to show the corresponding one and hide the others, respectively.

    It seems that you are missing a large chunk of the CSS required to style the tabs and it is the CSS classes that drive some of the tab behaviour. If you drop in a link to a jQuery UI theme CSS hosted on google api, then all appears to work correctly. I added the following after your CSS stylesheet link

    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
    

    and all appeared to work as expected.

    On a side note, you may be interested in checking out ASP.NET MVC – in my personal opinion after using it for around a year, given a choice, I would not go back to web forms. If your comfortable with HTML, CSS and JavaScript, you might find it more intuitive than web forms to use 🙂

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

Sidebar

Related Questions

Can I change the field public virtual ClassOne ClassOne { get; set; } to
Can any one tell, how to get the result of LINQ query contains group
Can someone maybe tell me why this is not working? I have used echo
Can MOSS integrate and get user profiles from multiple Active Directory and/or LDAP stores?
Can anyone tell me what i am doing wrong? I am trying to get
Can someone please explain how this code is working for me? I don't understand
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Can someone help me? I am trying to do something like the following: #include
Can find why i get this error can someone help? package Android.data; public class
Can't get over it, no matter how much I search. I have AlarmManager, where

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.