Try modifying your code like this to make sure you're getting the full
correct client side control id at run time:
I hope this helps,
Steve C. Orr, MCSD
"KJ" <klj_mcsdhotmail.com> wrote in message
news:d83a9214.0307171320.6b4af103posting.google.c om...> I have seen examples on how to set the default button on a ASPX page
> with asp server controls
> Sub Page_Load()
> Page.RegisterHiddenField("__EVENTTARGET", "btnSearch")
> End Sub
> But that does not work if your default button is inside a custom
> control on a ASP.NET page. If someone think is does let me know what
> I'm doing wrong.
> Are they any way I can make that work?
> Thanks in advance