473,804 Members | 3,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="WebU serControl1" %>

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

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="Web FormASCX.aspx.c s"
AutoEventWireup ="false" Inherits="Deplo y.WebFormASCX" %>
Running the WebForm results in the following error message:
Parser Error Message: Could not find a part of the
path "c:\inetpub\www root\Deploy\Q\W ebUserControl1. ascx".

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

Can you see my error?

MG


Nov 18 '05 #1
1 1331
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.co m> 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="WebU serControl1" %>

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

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="Web FormASCX.aspx.c s"
AutoEventWireup ="false" Inherits="Deplo y.WebFormASCX" %>
Running the WebForm results in the following error message:
Parser Error Message: Could not find a part of the
path "c:\inetpub\www root\Deploy\Q\W ebUserControl1. 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
3479
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 that in Windows 2000 SP3 IIS5 no .NET Framework? Thanks. -- George Hester __________________________________
3
1480
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. These pages will interact with a database, check security, etc. I have seen this KB article: http://support.microsoft.com/default.aspx?kbid=324785
5
3167
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 the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
2
1785
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 referencing an ..ascx that lives outside the application I get a failure. Is there any way to have a global ascx file that multiple seperate applications can use? Thanks
3
1454
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" site. How can I share the template user controls with these "sub-applications"? Example: Root
4
1459
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 I reference the user control library project and create a virtual directory under each applicatoin that links to the folder that contains the ascx files but I get a runtime error like: Description: An error occurred during the parsing of a...
5
1476
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 user first goes into the Stock Control app, he needs to log in. When he goes from the Stock Control app to the Reporting app, his User ID needs to get transfered across so the Reporting app knows who the user is (without asking him to log in...
5
5098
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 problem we have in user controls how to share them without duplicate the control in each project ....we need to remain the controls in main project and all subproject use them .....what is the avaiable technique to achieve this?
6
2973
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 from VB6 and other legacy languages/systems (Pure VBScript, DataEase, etc.) over to .NET. Currently, *all* user data is stored on network shares. When a user logs in to a workstation, their home drive is mounted from one share, all of their...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9572
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.