Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
5324 Points
1041 Posts
Mar 01, 2008 03:07 AM|LINK
Hi,
try this...
Page.ClientScript.RegisterStartupScript(
itsnasir "<SCRIPT language='javascript'> document.getElementById('ctl00_ContentPlaceHolder1_cfsTrade1_cmbSettlementDate').focus();</SCRIPT>", true);
if you are using script tag in you scripts element no need to use true..... true or false is used to set whether the system need to add <script> tag with your code dynamically.....
vasanth.kuma...
Contributor
5324 Points
1041 Posts
Re: DropDownList Focus is Lost!!!
Mar 01, 2008 03:07 AM|LINK
Hi,
try this...
Page.ClientScript.RegisterStartupScript(
this.GetType(), "foc", "document.getElementById('" + DropwdownName.ClientID + "').focus();", true);if you are using script tag in you scripts element no need to use true..... true or false is used to set whether the system need to add <script> tag with your code dynamically.....
Software Engineer.