Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Catch the return

Reply
Thread Tools

Catch the return

 
 
Julia
Guest
Posts: n/a
 
      06-22-2006
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
 
Reply With Quote
 
 
 
 
Phillip Williams
Guest
Posts: n/a
 
      06-22-2006
If you want to cause a default button to be clicked you use a panel in
asp.net 20
<aspanel ID="Panel1" runat="server" DefaultButton="UpdateButton">
</aspanel>


or you can consume the keypress event in HTML on any object within your
control
http://msdn.microsoft.com/library/de...onkeypress.asp

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


"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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
catch doesn't catch a thrown exception Marteno Rodia Java 5 08-05-2009 03:30 AM
return statement should put beyond try/catch clause?? Matt Java 40 04-15-2006 04:13 AM
catch(...) doesn't catch everything Adam C++ 9 02-02-2006 05:02 PM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
why catch (...) can not catch such exception John Black C++ 8 08-20-2004 02:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57