I have an asp:textbox
and when a user clicks the \"Cancel\" button, I want to erase w
When your asp:textbox is rendered to the UI, then yes, it is just an input field of type text. The only part that may be an issue is the ID, but that can be set using ClientIDMode:
renders to:
and thus the JavaScript you use should work perfectly.