I have an asp:textbox
and when a user clicks the \"Cancel\" button, I want to erase w
I had the same problem. I solved it once I remembered there is a mangling going on with asp.net on the Ids.
within my aspx, i had:
further down, within a gridview (hence the use of "class" instead of "id"), i had a column which had an asp:TextBox:
once i recalled the id mangling issue, it was just a case of changing the way i referenced the textbox: