PDA

View Full Version : What happens when you delete a button from a web form


chelvis
06-14-2006, 10:22 PM
I created a web form with a text box and a button. I named the button as 'butSign'. Then I deleted that button. Then again I created another button and tried to name is as 'butSign'. But it wouldnt let me name is because it says a button in that name already exists.

So even if you delete a button at design mode, it still exists? How can I permanantely delete a button or any other control (textbox, label etc) from a web form so when I create it again with the same name, I dont get this error message.

Damon
06-15-2006, 09:13 PM
try editing hte coding of what you are doing and removing the entire line that defindes the buttons variable and what that said button does.

vinyl-junkie
06-16-2006, 05:23 AM
You may have to delete some code-behind code when you delete the button.

chelvis
06-16-2006, 03:22 PM
Yes, that worked. Thanks