Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > LostFocus GotFocus Events

Reply
Thread Tools

LostFocus GotFocus Events

 
 
Pratap
Guest
Posts: n/a
 
      12-30-2003
Is it possible to capture LostFocus and GotFocus Events
for a TEXTBOX WebForms Control using ASP.NET.. if so How.?
 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      12-30-2003
At client-side (HTML) you could attach handlers to onfocus and onblur events
of the INPUT object to get to the events (IE ahs also new onfocusin and
onfocusout events). If you want to take them to server-side, you need to
create a custom control that inherits from TextBox or manage the events at
client-side.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


"Pratap" <> wrote in message
news:028e01c3cebd$b0675a50$...
> Is it possible to capture LostFocus and GotFocus Events
> for a TEXTBOX WebForms Control using ASP.NET.. if so How.?



 
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
How to clear a textbox on GotFocus in a web-page ? Radu ASP .Net 1 07-17-2007 03:56 PM
Lostfocus event in textbox Annie ASP .Net Web Controls 4 05-27-2006 08:51 AM
TextBox lostfocus event blighty ASP .Net Mobile 0 08-18-2004 03:11 AM
LostFocus Event Pratap ASP .Net 2 12-30-2003 02:46 PM
To sence use the gotfocus event. for textbox ASP.NET Gopal Krishna Tengli ASP .Net 2 08-29-2003 09:26 PM



Advertisments