You might not have set Autopostback to true and make sure CausesValidation is false once you set autopostback to true to prevent validation on the TextChangedEvent trigger
as above said check for auto postback true for the textbox. if its there on that case check for the form tag of the page ther should not be multiple form tag.
Neiteen
Member
19 Points
76 Posts
Textchanged event is not working in VS 2010
May 16, 2012 09:21 AM|LINK
Textchanged event is not working in VS 2010?
rohitpundlik
Contributor
3102 Points
934 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:23 AM|LINK
What Error ur getting....? Can u plz show ur code ?
Rohit Pundlik
Please mark as answer if this helps you...
Evolutionz
Member
261 Points
95 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:23 AM|LINK
you need to place the textbox in a updatepanel and set autopostback=true for the textbox
niralpatel
Contributor
2391 Points
452 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:23 AM|LINK
Hi,
Hope you have marked AutoPostback="true" for that textbox. still not worked then please let us know your code so we can help you better.
or Let me know for Further help.
Thanks
Niral Patel
(INDIA)
sujithkumar
Contributor
3012 Points
557 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:23 AM|LINK
hi Neiteen,
Not working in the sence, is it not firing..?
Please check whether u have mentioned AUTOPOSTBACK="TRUE"...
Ravi Kumar K...
Member
727 Points
155 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:24 AM|LINK
You might not have set Autopostback to true and make sure CausesValidation is false once you set autopostback to true to prevent validation on the TextChangedEvent trigger
vinay13mar
Star
7756 Points
1626 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:25 AM|LINK
Hi,
as above said check for auto postback true for the textbox. if its there on that case check for the form tag of the page ther should not be multiple form tag.
V.K.Singh
Neiteen
Member
19 Points
76 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:32 AM|LINK
thanks to all for quick reply.. My code is very simple I have textbox & one label..on TextChanged event label text should changed....
It is not goin to event while debugging....
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Label1.Text = "test";
}
Neiteen
Member
19 Points
76 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:34 AM|LINK
Autopostback is true...& CausesValidation is false...but still it is not working..
Neiteen
Member
19 Points
76 Posts
Re: Textchanged event is not working in VS 2010
May 16, 2012 09:35 AM|LINK
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Label1.Text = "test";
}