how t fire textbox change event in asp.net

Posted by Shanky11 under ASP.NET on 10/6/2012 | Points: 10 | Views : 6259 | Status : [Member] | Replies : 3
how t fire textbox change event in asp. i have a text box on text change event i want to give some message




Responses

Posted by: Saratvaddilli on: 10/6/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
simple write OnTextChanged event

ASPX PAGE
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true" OnTextChanged="TextBoxValueChanged" />

CODE BEHIND
protected void TextBoxValueChanged(object sender, EventArgs e)

{
Response.Write(TextBox1.Text.Trim());
}


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

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

Posted by: Saratvaddilli on: 10/6/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
simple write OnTextChanged event

ASPX PAGE
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true" OnTextChanged="TextBoxValueChanged" />

CODE BEHIND
protected void TextBoxValueChanged(object sender, EventArgs e)

{
Response.Write(TextBox1.Text.Trim());
}


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

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

Posted by: Jayakumars on: 10/6/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
check this image file firing
 Download source file

Mark as Answer if its helpful to you

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

Login to post response