I am trying to create a webform. I added a button control on the web form but when i switched to the design mode i got the error:
Error creating Button1
Cannot create web project item E:\MyProjects\C#\WebApplication1
Can somebody suggest a solution
You need to remove the # character because this character denotes a bookmark. It is a reserved “special character”, just as ? and / are reserved (although these characters aren’t allowed in folder names either).
Here is an example…
This source location is treated as follows.
So your image will try and load “http://localhost/MyApplication/C“
Here is an example of a real bookmark in action so you can see how it works… Pop this in a test html file (called “test.html”).