I have a textbox control and a button control in a webpart. when i click the button control(postback) the text in the textbox control is inserted in my database and then the textbox should be cleared. In my case the text in the control is not getting cleared.
I am generating the above said controls dyanamically in the CreateChildControls method. I tried setting the enable viewstate for this control to false but that does not work.
what should be done to overcome the issue?
Thanks in advance..