Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web User Controls in separate project

Status
Not open for further replies.

Qik3Coder

Programmer
Jan 4, 2006
1,487
US
I'm trying to create a new web site, with some heavy data controls. I wanted the data controls in their own project in case I need to use them again.

Solution Structure:
BusinessLogic (WebApp)
[tab]UserControl.ascx
[tab]UserControl2.ascx
WebSite (WebApp)
[tab]WebPage1.aspx
[tab]WebPage2.aspx

I've got the projects all set up. The BusinessLogic project is referenced in the <pages><controls><add> section, so the controls are available.
I can put the ascx's on the web pages. The code in the code behind is running.
Any controls added in the page load of the control WILL render.
I can't see anything declared in the ascx.
I cannot see the user control in the designer. (At all. No Error. Nothing)

If I add a web page to the BusinessLogic project and add a user control, I can see the user control fine.

Suggestions?
Lodlaiden

You've got questions and source code. We want both!
 
How are you loading the controls? Are you using Page.LoadControl?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top