Hi,
First, place any other control on the form and try to access it in code. if u cant then that may be because initially Website Project was created and now being encorporated into Visual Basic Website Project. Visual Basic Website Project generates an additional resource file in which all controls are declared which is not the case when u create a Website like File + New + Website. at lease thats what i have experienced. if this is the case then try this same code in a website project (like File + New + Website) not like File + New + Project + Visual Basic/Visual C# + Web + Website.
If ur problem is not addressed or solved by above. For server side scripting your code should run fine. Client Side java scripting is another thing.
<
cc1:TabContainer ID="TabContainer1" runat="server" Height="199px" Width="332px">
To access the above mentioned container in client side java script Use the following where ever u need to access it.
$find(
'<%=TabContainer1.ClientID%>')
this would give u the container control in java script, if u c the View Source of rendered page u will c that client names are some what changed from server name.
To Set tab index in client side java script use
$find(
'<%=TabContainer1.ClientID%>').set_activeTabIndex(1);
im using 1 in my scenario. i had a text box in second page at index 1 and performing a batch validation and save process, so needed to bring page and control in view + focus to prompt user of invalid input. i think control in tab page of this container are also not directly accessible. use the following to do just that.
ctl=document.getElementById(
"<%=Textbox5.ClientID%>");
ctl.focus();
Hope this helps.
Regards
Omer Sultan