- I make a user control and then want to include it on a page
-
I have to always manually type the @Register line at the top of my .aspx file, e.g.
<%@ Register TagPrefix="edward" TagName="GetQuote" src="~/Controls/GetQuote.ascx" %>
- Is there any way to automatically create these @Register lines?
(I tried dragging in the .ascx file from the Solution Explorer, doesn't work.)
Problem solved: I was dragging into my source view instead of design view. Thanks DilbertDave.
Best Answer
I don't get this issue - are you dragging to the aspx in source or design mode?
Dragging in Design mode creates the Register line for me.