Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

how to handle click of a tab

In Javascript, how do I handle/hook a click event on a tab?  This is ASP.NET TabPanel.
0
HLRosenberger
Asked:
HLRosenberger
1 Solution
 
Miguel OzSoftware EngineerCommented:
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
 
Monica PSoftware DeveloperCommented:
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
 
HLRosenbergerAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now