?
Solved

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

Posted on 2005-03-28
4
Medium Priority
?
575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

764 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