|
 |
aspx_beginners thread: Src for Usercontrols in multiple directories
Message #1 by briley@c... on Mon, 24 Feb 2003 13:15:53
|
|
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be made
in both the main and sub directories.
Message #2 by "Ted Nandakumar" <TedN@i...> on Mon, 24 Feb 2003 18:32:24 +0530
|
|
change the src path for the files in the sub-directories, thats the only
alternative. Make it point to the proper virtual path to refer the
control file
-----Original Message-----
From: briley@c... [mailto:briley@c...]
Sent: Monday, February 24, 2003 6:46 PM
To: aspx_beginners
Subject: [aspx_beginners] Src for Usercontrols in multiple directories
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be
made
in both the main and sub directories.
Message #3 by "Ben Densmore" <ben_densmore@e...> on Mon, 24 Feb 2003 09:06:12 -0500 (Eastern Standard Time)
|
|
--------------Boundary-00=_CIGTQL80000000000000
Content-Type: Text/Plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
When you specify where the user control source is located try doing Src=3D
~/Sourcefilename.ascx" . I don't know 100% that it will fix your problem
but
i noticed when looking at the IBiySpy Portal code from asp.net that in al
ot
of the aspx files when they are calling user controls that use that
convention of calling some of the controls.=0D
=0D
HTH,=0D
Ben=0D
=0D
-------Original Message-------=0D
=0D
From: aspx_beginners=0D
Date: Monday, February 24, 2003 08:01:21 AM=0D
To: aspx_beginners=0D
Subject: [aspx_beginners] Src for Usercontrols in multiple directories=0D
=0D
I've created a user control that I need to add to a variety of different
=0D
aspx pages. One of the aspx pages sits in the main directory, the other =0D
sits in a sub-directory. When I try to open the aspx page within the =0D
subdirectory - I get a src error when my page references my user =0D
controls. How do I fix this? Does all the usercontrols I'm using have =0D
to be copied into the subdirectory as well? That doesn't seem like an =0D
efficient solution since changes to the user control will have to be made
=0D
in both the main and sub directories.=0D
=0D
---=0D
Change your mail options at http://p2p.wrox.com/manager.asp or =0D
to unsubscribe send a blank email to leave-aspx_beginners-1638673Q@p...
ox
com.=0D
=2E
Message #4 by "Dale Purdon" <dale@t...> on Mon, 24 Feb 2003 16:17:28 +0200
|
|
In your statement?Src="~/Sourcefilename.ascx"
The ?~? simply refers to your application root. Ie
?Inetpub\wwwroot\myapplication\Sourcefilename.ascx?
-----Original Message-----
From: Ben Densmore [mailto:ben_densmore@e...]
Sent: 24 February 2003 04:06 PM
To: aspx_beginners
Subject: [aspx_beginners] Re: Src for Usercontrols in multiple
directories
When you specify where the user control source is located try doing
Src="~/Sourcefilename.ascx" . I don't know 100% that it will fix your
problem but i noticed when looking at the IBiySpy Portal code from
asp.net that in alot of the aspx files when they are calling user
controls that use that convention of calling some of the controls.
HTH,
Ben
-------Original Message-------
From: HYPERLINK "mailto:aspx_beginners@p..."aspx_beginners
Date: Monday, February 24, 2003 08:01:21 AM
To: HYPERLINK "mailto:aspx_beginners@p..."aspx_beginners
Subject: [aspx_beginners] Src for Usercontrols in multiple directories
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be
made
in both the main and sub directories.
---
Change your mail options at HYPERLINK
"
to unsubscribe send a blank email to HYPERLINK
"mailto:%25%25email.unsub%25%25"
.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
Message #5 by "Bob Riley at cars4U.com" <BRiley@c...> on Mon, 24 Feb 2003 09:23:06 -0500
|
|
Thanks a million!
-----Original Message-----
From: Dale Purdon [mailto:dale@t...]
Sent: Mon 2/24/2003 9:17 AM
To: aspx_beginners
Cc:
Subject: [aspx_beginners] Re: Src for Usercontrols in multiple directories
In your statementâ?¦Src="~/Sourcefilename.ascx"
The â??~â?? simply refers to your application root. Ie
â??Inetpub\wwwroot\myapplication\Sourcefilename.ascxâ??
-----Original Message-----
From: Ben Densmore [mailto:ben_densmore@e...]
Sent: 24 February 2003 04:06 PM
To: aspx_beginners
Subject: [aspx_beginners] Re: Src for Usercontrols in multiple
directories
When you specify where the user control source is located try doing
Src="~/Sourcefilename.ascx" . I don't know 100% that it will fix your
problem but i noticed when looking at the IBiySpy Portal code from
asp.net that in alot of the aspx files when they are calling user
controls that use that convention of calling some of the controls.
HTH,
Ben
-------Original Message-------
From: HYPERLINK "mailto:aspx_beginners@p..."aspx_beginners
Date: Monday, February 24, 2003 08:01:21 AM
To: HYPERLINK "mailto:aspx_beginners@p..."aspx_beginners
Subject: [aspx_beginners] Src for Usercontrols in multiple directories
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be
made
in both the main and sub directories.
---
Change your mail options at HYPERLINK
"
to unsubscribe send a blank email to HYPERLINK
"mailto:%25%25email.unsub%25%25"
.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003
Message #6 by "Rohit Arora" <rohit_arora@i...> on Tue, 25 Feb 2003 11:36:03 +0530
|
|
better put them in bin directory of application or u hv to specify in src
attribute.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: briley@c... [mailto:briley@c...]
Sent: Monday, February 24, 2003 1:16 PM
To: aspx_beginners
Subject: [aspx_beginners] Src for Usercontrols in multiple directories
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be made
in both the main and sub directories.
Message #7 by "Bob Riley at cars4U.com" <BRiley@c...> on Tue, 25 Feb 2003 11:48:07 -0500
|
|
Hello Rohit,
Thanks for the solution. I'll have to try it and see how it comes out.
I found the source of my original problem was related to the security
set up I was using - I've since changed it and no longer have the src
errors - however, this solution looks like it could work with the
original configuration I was contemplating. I'll try it and see what
comes of it.
Cheers
BR
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Tuesday, February 25, 2003 1:06 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: Src for Usercontrols in multiple
directories
better put them in bin directory of application or u hv to specify in
src
attribute.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: briley@c... [mailto:briley@c...]
Sent: Monday, February 24, 2003 1:16 PM
To: aspx_beginners
Subject: [aspx_beginners] Src for Usercontrols in multiple directories
I've created a user control that I need to add to a variety of different
aspx pages. One of the aspx pages sits in the main directory, the other
sits in a sub-directory. When I try to open the aspx page within the
subdirectory - I get a src error when my page references my user
controls. How do I fix this? Does all the usercontrols I'm using have
to be copied into the subdirectory as well? That doesn't seem like an
efficient solution since changes to the user control will have to be
made
in both the main and sub directories.
|
|
 |