Solved

how to handle click of a tab

Posted on 2013-02-01
3
245 Views
Last Modified: 2013-02-05
In Javascript, how do I handle/hook a click event on a tab?  This is ASP.NET TabPanel.
0
Comment
Question by:HLRosenberger
3 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
Comment Utility
Use onclientclick event, For sample code check:
http://stackoverflow.com/questions/7684551/pass-parameter-to-js-function-of-tabcontainer-onclientclick
Note: If this event return false then only javascript event executes, but if it returns true btoh javascript event and .NET server click event execute.
0
 
LVL 10

Accepted Solution

by:
Monica P earned 500 total points
Comment Utility
You can use  OnClientActiveTabChanged property of TabContainer

OnClientActiveTabChanged - The name of a javascript function to attach to the client-side tabChanged event

Also you can use OnClientClick property of Tablpanel

OnClientClick - The name of a javascript function to attach to the client-side click event of the tab.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
Comment Utility
Thanks!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This article discusses how to create an extensible mechanism for linked drop downs.
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

10 Experts available now in Live!

Get 1:1 Help Now