Reusing UserControls via IIS virtual directory or something?
Posted on 2007-10-20
i have a user control (ascx) that has a javacript file and css file. I want to be able to use it in two separate web projects. This is for .NET2.0.
I tried making the usercontrol web project a virtual directory, however the other two web projects still could not use the controls.
<%@ Register Src="~/UserControlLibrary/MYUC.ascx" TagName="MyControl" TagPrefix="MyCompany" %>
UserControlLibrary is my virtual off the localhost.
how do i do this?