Solved

Attach onclick event to TabContainer/TabPanel

Posted on 2011-09-13
2
1,105 Views
Last Modified: 2012-05-12
I have a simple AJAX TabContainer control on a page with 4 tab panels. When the user clicks the last tab I need a message box to flash up. This event needs to be enabled/disabled on the basis of a value in a database and so code behind control is required (I write in VB). Adding an OnClientClick event to the tabpanel stops the entire control from rendering, whether I do it on the page or in code-behind. What am I missing?
0
Comment
Question by:deveson
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 125 total points
Comment Utility
In jquery itself, you can check the variable and bind/unbind the onclick event

if(  flag == true )
{
   $("#last_tab").unbind("click");
}
else
{
   $("#last_tab").bind("click");
}

0
 

Author Closing Comment

by:deveson
Comment Utility
I am unfamiliar with jquery but guess will need to learn this now to achieve objective
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now