473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Share user control across applications

mg

I took the following steps to share a user control across
applications but was unsuccessful.
WebUserControl:

<%@ Control Language="c#" AutoEventWireup="false"
ClassName="WebUserControl1" %>

-----------------------------------------

WebUserControl.ascx placed in C:\Inetpub\Q

-----------------------------------------

In Internet Information Services:

New / Virtual Directory

Alias: Q
Directory: C:\Inetpub\Q

Properties: Remove Q

-----------------------------------------

WebForm:

<%@ Register TagPrefix="HDR" TagName="Head"
Src="Q/WebUserControl1.ascx" %>

<%@ Page language="c#" Codebehind="WebFormASCX.aspx.cs"
AutoEventWireup="false" Inherits="Deploy.WebFormASCX" %>
Running the WebForm results in the following error message:
Parser Error Message: Could not find a part of the
path "c:\inetpub\wwwroot\Deploy\Q\WebUserControl1.ascx" .

-----------------------------------------

Can you see my error?

MG


Nov 18 '05 #1
1 1309
there was a similar post a few days back....
one of the guys did share a good link...
it said something bout placing the user controls and marking that directory
as a virtual directory under your project.

HTH

HD

"mg" <mg@theworld.com> wrote in message
news:01****************************@phx.gbl...

I took the following steps to share a user control across
applications but was unsuccessful.
WebUserControl:

<%@ Control Language="c#" AutoEventWireup="false"
ClassName="WebUserControl1" %>

-----------------------------------------

WebUserControl.ascx placed in C:\Inetpub\Q

-----------------------------------------

In Internet Information Services:

New / Virtual Directory

Alias: Q
Directory: C:\Inetpub\Q

Properties: Remove Q

-----------------------------------------

WebForm:

<%@ Register TagPrefix="HDR" TagName="Head"
Src="Q/WebUserControl1.ascx" %>

<%@ Page language="c#" Codebehind="WebFormASCX.aspx.cs"
AutoEventWireup="false" Inherits="Deploy.WebFormASCX" %>
Running the WebForm results in the following error message:
Parser Error Message: Could not find a part of the
path "c:\inetpub\wwwroot\Deploy\Q\WebUserControl1.ascx" .

-----------------------------------------

Can you see my error?

MG

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George Hester | last post by:
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do...
3
by: Jon Paugh | last post by:
Hi, If I have several aspx pages that I want to share across multiple web applications, how would I organize them? Basically, a subset of the pages on a given site will be on several sites....
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
2
by: Eric | last post by:
I have a header server(.ascx) control that I want to use with all my existing seperate web apps. These web apps are configured as seperate web apps in IIS but when I try to build my solutiuon...
3
by: Chad A. Beckner | last post by:
Hey everyone, Ok. I have a "template and skin" setup on the beginnings of a new portal site. In this site, there are going to be many applications, which will be store underneath the "master"...
4
by: dx | last post by:
I have 3 vb.net web applications. I would like all 3 to have access to a library of user controls. server controls wouldn't cause a problem but these are user controls (ascx.) From each solution...
5
by: Craig HB | last post by:
I have 2 asp.net applications : a Stock Control application and a Reporting application. They are separate applications in IIS 6 and developed as separate projects in visual studio.net. When the...
5
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the...
6
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.