Two things:
1. Give your BODY Tag and ID and include ‘Runat=Server’
(like – - <body id=”bdyMain” Runat=”Server”>)
2. In the Page_Load event:
if not Page.IsPostBack then bdyMain.attributes("onload")="document.form1.TextBox1.focus();" end if
Two things:
1. Give your BODY Tag and ID and include ‘Runat=Server’
(like – - <body id=”bdyMain” Runat=”Server”>)
2. In the Page_Load event:
if not Page.IsPostBack then bdyMain.attributes("onload")="document.form1.TextBox1.focus();" end if