Check the name of the Button through the Html Source (in IE)
When you register a control on your page, it renames your controls with
[ControlTagName]_[IDYOUSET]
you can pick this up by viewing source from IE, and viewing the now changed
ID of your button 'btnsubmit'
to fix this, just change your javascript with the new id
"Page.RegisterH iddenField("__E VENTTARGET", "[TAGNAME]_btnSubmit")"
Bearing in mind for this solution, you'll need to give the control the same
tagname wherever you use it - unless the javascript is in the page and not
the control
HTH
"John Smith" <no*******@addr ess.com> wrote in message
news:ux******** ******@tk2msftn gp13.phx.gbl...
I am having a brain fart today....
How do you set a default button within a User Control? I am using
"Page.RegisterH iddenField("__E VENTTARGET", "btnSubmit" )" but it does not
seem to be working for me.
I have another User Control which uses this technique and works. Can't
think of what I am missing?
--
Thanx in Advance,
atr2000