Click here to Skip to main content
11,641,971 members (59,892 online)
Rate this: bad
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 19: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 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
Ankur\m/ at 20-Jan-12 6:28am
what does that mean?
Tech Code Freak at 20-Jan-12 6:46am
Very Correct!
RockingDev at 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 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
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
0 DamithSL 245
1 Afzaal Ahmad Zeeshan 170
2 Sergey Alexandrovich Kryukov 159
3 OriginalGriff 110
4 Mika Wendelius 90
0 Mika Wendelius 460
1 DamithSL 353
2 OriginalGriff 315
3 Sergey Alexandrovich Kryukov 179
4 Afzaal Ahmad Zeeshan 169

Advertise | Privacy | Mobile
Web04 | 2.8.150731.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