i have 2 textboxes. when i enter the value in textbox1 and press "enter" the focus changes to textbox2.
at that time i want to check a value in database and display a image.. in which event i have to write that?
Hi
You have multiple way,amit.jain provide the asp.net ajax way.
Also you can use jquery in asp.net, please refer to :
http://www.aspsnippets.com/Articles/Check-UserName-Availability-in-ASP.Net-using-JQuery.aspx
use ontextchanged event
refer http://csharpdotnetfreak.blogspot.com/2012/05/check-username-email-availability-ajax.html for more info