Click here to Skip to main content
11,929,655 members (56,291 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET

actually i was done a project in on banking using textbox lostfocus event. now i need to write in but i am new to so i dont no how to do it in ,in textbox lostfocus event is not there... other than scripting what can i do for coding.
Posted 15-Mar-11 20:35pm
Rate this: bad
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!
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
Ankur\m/ 20-Jan-12 6:28am
what does that mean?
Tech Code Freak 20-Jan-12 6:46am
Very Correct!
RockingDev 1-Mar-12 3:51am
Rate this: bad
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
Anuja Pawar Indore 1-Mar-12 4:08am
Post it as comment, this is not answer
Patil_Nilesh 1-Mar-12 4:15am
yes anuja
Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 1 Mar 2012
Copyright © CodeProject, 1999-2015
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