c# - focus on user control -



c# - focus on user control -

i want focus on user command giving me errors

function getfocus() { document.getelementbyid('<%myusercontrol.clientid%>').focus() } <a href.... onclick="getfocus()>click</a>

how can this?

thank you

replace this:

document.getelementbyid('<%myusercontrol.clientid%>').focus()

with this:

document.getelementbyid('<%= myusercontrol.clientid%>').focus()

c# asp.net

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -