hrabia
Well-known member
I have one contol ctlLoader which loads second control ucComment. The second control has one textbox txtNewComment. Id like to set focus on my textbox. Ive look at rendered code and find out that my controls id is
ctlLoader__ctl0_ucComment_txtNewComment
so I can set focus like this (client-side javascript):
document.frmDefault.ctlLoader__ctl0_ucComment_txtNewComment.focus();
But how can I get this id programatically?
ctlLoader__ctl0_ucComment_txtNewComment
so I can set focus like this (client-side javascript):
document.frmDefault.ctlLoader__ctl0_ucComment_txtNewComment.focus();
But how can I get this id programatically?