Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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!
 
Share this answer
 
Comments
Venkatesh Mookkan 16-Mar-11 1:45am    
Good one man.
Ankur\m/ 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 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/ 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 20-Jan-12 3:54am    
kopip
@ankur.... i am not getting onblur event only .... i am using 2005 frame work is tht reason for this problem ????????????

thank you
roopagovindaiah
 
Share this answer
 
Comments
Anuja Pawar Indore 1-Mar-12 4:08am    
Post it as comment, this is not answer
Nilesh Patil Kolhapur 1-Mar-12 4:15am    
yes anuja
solution :)
on load page use this code...."...textbox1.attributes("onblur")="javascript;"..."
and enable auto postback property.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900