This is a migrated thread and some comments may be shown as answers.

UserControl Validation in TabStrip

2 Answers 70 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
gautham
Top achievements
Rank 1
gautham asked on 10 Mar 2011, 08:59 PM
HI,

I have a serious question, I have a tabstrip with four tabs and each tab has its usercontrol, and userusercontrol has some validation going on. But when the Usercontrol is used in 2nd tab , 3rd tab and 4th tab I am unable to move around the tabs because I am doing  usercontrol validation in client side so I am getting error of "htmlfile: cant move focus to the control because it is invisible not enabled or of type that does not accept the focus"

can any one help me with this Issue??

2 Answers, 1 is accepted

Sort by
0
Chetan
Top achievements
Rank 1
answered on 04 Jan 2012, 04:52 PM
use causesvalidation="false" for the button that throws you the error.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 05 Jan 2012, 02:23 PM
Hello,

Please remove below property from your code.
SetFocusOnError="true"

or.

before click you have set the focus on any other control which was not validate by any validation control.

Thanks,
Jayesh Goyani
Tags
TabStrip
Asked by
gautham
Top achievements
Rank 1
Answers by
Chetan
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or