Click here to Skip to main content
15,887,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Let me elaborate the scenario a bit more. I have a tabcontainer 'tabcontainer1' with 4 tabpanels in it. Let's say in the 3rd panel I have a textbox which generates the error' on validation. The problem is tabindex turns to 0 after validation and I'm not able to set the focus on the textbox.
Here I know the textbox control ID alone.Is there anyway I can set the activetabindex to the third panel and set the focus to the textbox. I'm trying to write a generic method to which I can pass the textbox ID with which I need to find the index of the tab panel in the parent tabcontainer, so that I can set the activetabindex to the tabcontainer1 and also set the focus to the textbox.

Please let me know if there is a way to find the actual panel of the textbox and set the index to it and also set the focus to the textbox.

Thanks,
Anandhi
Posted
Updated 14-Mar-10 13:51pm
v3

1 solution

I think you must be having information about the Parent container?

Or may be you can keep track of the TabContainer in a hidden field as and when you change them. Use the hidden field to get the container name/index and reset it.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900