Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi
 
actually i was done a project in vb.net on banking using textbox lostfocus event. now i need to write in asp.net. but i am new to asp.net so i dont no how to do it in asp.net ,in asp.net textbox lostfocus event is not there... other than scripting what can i do for coding.
thankyou
roopagovindaiah
Posted 15-Mar-11 20:35pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you want to do some client side processing, use onblur event and attach a JavaScript handler to it.
For server side processing, you need to handle TextBox's TextChanged event. Do remember to enable AutoPostBack for the TextBox.
 
Hope this helps!
  Permalink  
Comments
Venkatesh Mookkan at 16-Mar-11 1:45am
   
Good one man.
Ankur\m/ at 16-Mar-11 1:52am
   
Thanks man.
And hey where were you these days? Didn't show up in GIT.
I was planning to buy a new cell and was thinking of you. ;)
Venkatesh Mookkan at 16-Mar-11 1:56am
   
I used to read GIT. If something interests me, I will reply.
 
Start OP on GIT. Will see you there. ;)
Ankur\m/ at 16-Mar-11 2:05am
   
Not right now, I am checking out for options. Will come back with a list and inform you.
Thanks! :)
biswojitspradhan at 20-Jan-12 3:54am
   
kopip
Ankur\m/ at 20-Jan-12 6:28am
   
what does that mean?
Tech Code Freak at 20-Jan-12 6:46am
   
5up!
Very Correct!
RockingDev at 1-Mar-12 3:51am
   
5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

@ankur.... i am not getting onblur event only .... i am using 2005 frame work is tht reason for this problem ????????????
 
thank you
roopagovindaiah
  Permalink  
Comments
Anuja Pawar Indore at 1-Mar-12 4:08am
   
Post it as comment, this is not answer
Patil_Nilesh at 1-Mar-12 4:15am
   
yes anuja
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

solution Smile | :)
on load page use this code...."...textbox1.attributes("onblur")="javascript;"..."
and enable auto postback property.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 BillWoodruff 108
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 1 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100