how to fire check text change event in asp;net

Posted by Shanky11 under ASP.NET on 10/6/2012 | Points: 10 | Views : 8494 | Status : [Member] | Replies : 3
----------source page
<asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox>

.cs page------------
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Response.Write(TextBox1.Text.Trim());
}
nothing happening on this code --------then what is textchange event
if we write something in txtbox then edit this is txtchange event or something else




Responses

Posted by: Sureshknkt7 on: 10/6/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

put AutoPostBack="true" in Textbox control

Thank you



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

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

Up
0
Down
ya Sureshknkt7 is correct
put autopostback="true" then it will work


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

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

Login to post response