Hi,
im having two page views. When the page loads for the first time, im able to set the focus on the first control, which is an normal text box. when im clicking an button, im loading the second page view. In this page view i need to set focus on the rad date picker.
I cannot set the focus on this control. Can anyone help me on this.
This is the code currently im using. But it is not working.
imgBtnContinue.Attributes.Add(
"onClick", "javascript:return setFocus()");
function
setFocus()
{
var txtSignUpDate = document.getElementById('<%= AddStep2PageView.FindControl("txtSignUpDate").ClientID %>')
txtSignUpDate.style.visibility =
"visible";
txtSignUpDate.focus();
}
Regards,
Chandru