Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

LoadControl("../controls/header.ascx");  can i load globally?

Posted on 2005-03-28
4
Medium Priority
?
577 Views
Last Modified: 2012-08-13
Hello,
Does  LoadControl suport a physical path linking-  something like this C:/Inetpub/wwwroot/.....? I tried but it didn work.
0
Comment
Question by:Carl3003
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:laotzi2000
ID: 13647445
You have to provide a virtual directory path to LoadControl.
0
 

Author Comment

by:Carl3003
ID: 13647454
Virtual directory like this one?
http://localhost/.../....
0
 
LVL 12

Accepted Solution

by:
laotzi2000 earned 200 total points
ID: 13647514
no, virtual direcotory is your path in IIS
For example,
normally
virtual path "/" correspondes to physical path "c:/inetpub/wwwroot"
then
virtual path "/webapplication1" correspondes to physical path "c:/inetpub/wwwroot/webapplication1"
You got the idea.

You can not give physical path to LoadControl, but you can find the virtual path to that physical path and give that.
For example,
for physical path "c:/inetpub/wwwroot/a.ascx", it's virtual path might be "/a.ascx"
0
 

Author Comment

by:Carl3003
ID: 13647571
worked...
thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question