Click to See Complete Forum and Search --> : Accessing User Control


Unnammed
February 5th, 2004, 03:13 AM
Hi,

Is there possible for a .aspx page access a user control located in other website?

I try to put the full "http" URL of the .ascx file in the Src of "<%@
Register TagPrefix="uc1" TagName="UCName" Src="AnUserControl.ascx" %>", but it wouldn't work, from the error message I can see that it actual map using local file path. Therefore, I just would like to ask is that possible to access a user control located in other website?

Thank you.

Andy Tacker
February 5th, 2004, 09:10 AM
<%@ Register TagPrefix="abc" TagName="Header" Src="http://www.abc.com/Header.ascx" %>
<%@ Page language="c#" Codebehind="abcpage.aspx.cs" AutoEventWireup="false" Inherits="myabc.abcpage" culture="en-US"%>

Unnammed
February 5th, 2004, 09:20 AM
It won't work... the error message will say something like Server.MapPath cannot find C:\Inetpub\wwwroot\aFolder\anotherFolder\http://www.abc.com/Header.ascx