to load user control runtime

M

Mahesh

I've created a library of page templates and some user controls. These files reside on d: drive instead of c:\inetpub\wwwroot\webapp directory.

When I use LoadControl("webUC1.ascx"), it looks for this file in c:\inetpub\wwwroot\webapp. How do I force it to look for the user control in any directory my d: drive. I can't specify physical path, because LoadControl() expects virtual path. I tried creating new Virtual Path for the library on d: drive. But LoadControl() complained, that it cannot use new virtual path because it belongs to different web application

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top