Textbox event should do something

Posted by Vanchi050585 under ASP.NET on 6/7/2010 | Views : 824 | Status : [Member] | Replies : 2
hi everybody,

I want do something when cursor lostfocus from textbox1 or cursor moved from textbox1 to next control. pls let me know which event use for this and sample coding please.

Thanks

Thanks
tvn



Responses

Posted by: Vuyiswamb on: 6/7/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
use the TextChanged Event

Look at this

http://support.microsoft.com/kb/873198/en-us

Thank you for posting at Dotnetfunda
[Administrator]

Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhilan on: 6/7/2010 [Member] Starter

Up
0
Down
Windows Application

Textchanged_event or KeyPress_Event

WebPage

SErver control dont have any event , you should write Javascript function

ex..

<asp:TextBox ID="TextBox1" runat="server" Width="180px" onblur="javascript:Sample()"></asp:TextBox>

<script >
function Sample()
{
// coding here
}
</script


Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response