Home All Groups Group Topic Archive Search About
Author
22 Jun 2006 2:28 PM
Julia
Hi

I have created a composite conrol and now I would like to catch the event
when a user press the return key. How do I do that?

Thanks
Julia

Author
22 Jun 2006 8:43 PM
Phillip Williams
If you want to cause a default button to be clicked you use a panel in
asp.net 20                        
<asp:Panel ID="Panel1" runat="server" DefaultButton="UpdateButton">
</asp:Panel>


or you can consume the keypress event in HTML on any object within your
control: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onkeypress.asp

Show quoteHide quote
"Julia" wrote:

> Hi
>
> I have created a composite conrol and now I would like to catch the event
> when a user press the return key. How do I do that?
>
> Thanks
> Julia