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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -