A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Lucas Demetrius ,
Maybe you can use JavaSc ript to achieve this.
function pageLoad() {
$get("<%=TextBox1.ClientID %>").focus();
}
Please refer to the following examples:
<form id="form1" run at="ser ver" >
<div>
<asp:Scr iptManager ID="ToolkitSc riptManager1" runat="server">
</asp:Sc riptManager>
<asp:TabContainer ID="TabContainer1" runat="server" Width="100%" >
<asp:TabPanel runat="server" ID="TabPanel1" HeaderText="11111">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text="123"></asp:TextBox>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
</div>
</form>
<scr ipt type="text/javasc ript">
function pageLoad() {
$get("<%=TextBox1.ClientID %>").focus();
}
</scr ipt>
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.