I was talking about the difference between WebSite and Web Application at VS.Net 2005. Today, while I was working in a new small project, I create a Web Application in c#, make a master pages, make a web pages that use the master pages and make a user control for the left menu. the bad new was went i try to drag the user control into the master pages. The VS IDE include a link to the file. I test with the .aspx pages, but i receive the same result.
I was looking for some configuration into “Tools > Options” but i not found anything. Before write this i was testing with a Website, just for know if work different. And YES, with the website the application work very fine.
This is other stuff to add into the WebSite vs WebApplication.
To Solve the matter I include the tags manual. The header and the include tags for user control:
Header: <%@ Register src=”ctrl/ucMenu.ascx” TagName=“ucMenu” TagPrefix=”uc1″ %>
Include User Control: <uc1:ucMenu ID=”UcMenu1″ runat=”server” />
If someone know how include a user control into a webpages using webapplication, I’ll thank a lot.