>>>Hi,
>>>
>>>I have added code in the PAGE_LOAD method of the page to have a textbox post back and to fire method on change. The code is as following:
>>>
>>>
>>>MyTextBox.Attributes.Add("OnTextChanged", "MyTextBox_TextChanged()");
>>>MyTextBox.AutoPostBack = true;
>>>
>>>
>>>The page does post back when the entry in the text box MyTextBox changes but the method MyTextBox_TextChanged never fires. Can you see what maybe missing in my code?
>>>
>>>Thank you in advance for any help.
>>
>>Why not just use:
MyTextBox.TextChanged += new EventHandler(MyTextBox_TextChanged);
instead....
>
>I did try this approach but still it didn't work. I think the only way for me to do what I am trying to do is to add the call to this method in the .ASPX side. That is, specifying the method in the code behind does not work.
>Thank you for your suggestion.
Suggestion works for me. Can you post all of your relevant .cs file content?