473,387 Members | 1,844 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,387 software developers and data experts.

Usercontrols src folder is virtual and undesired.

I generate code, want to set the SRC in a more dynamic way but it's not
allowed to insert server side commands.
Reason is that i have problems on different servers where the app's
rootfolder differs.

<%@ register TagPrefix="forms" TagName="form1_" Src="~/forms/form1.ascx" %>

Is there a solution like registering from within the .vb file instead?

I don't want to use the web.config for this matter.

Feb 6 '06 #1
2 854
dim c as control = Page.LoadControl("~/forms/whatever.ascx")
SomePlaceHolderOnYourPage.Controls.Add(c)

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:ds**********@azure.qinip.net...
I generate code, want to set the SRC in a more dynamic way but it's not
allowed to insert server side commands.
Reason is that i have problems on different servers where the app's
rootfolder differs.

<%@ register TagPrefix="forms" TagName="form1_" Src="~/forms/form1.ascx"
%>

Is there a solution like registering from within the .vb file instead?

I don't want to use the web.config for this matter.

Feb 6 '06 #2

Thanks, will try that !
:)

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> schreef in bericht news:%2***************@TK2MSFTNGP09.phx.gbl...
dim c as control = Page.LoadControl("~/forms/whatever.ascx")
SomePlaceHolderOnYourPage.Controls.Add(c)

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:ds**********@azure.qinip.net...
I generate code, want to set the SRC in a more dynamic way but it's not
allowed to insert server side commands.
Reason is that i have problems on different servers where the app's
rootfolder differs.

<%@ register TagPrefix="forms" TagName="form1_" Src="~/forms/form1.ascx"
%>

Is there a solution like registering from within the .vb file instead?

I don't want to use the web.config for this matter.


Feb 6 '06 #3

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

Similar topics

1
by: Juan Daniel Caicedo | last post by:
I create an user session with ASP in a Virtual Folder. When the ASP try to delete a subfolder in the same virtual folder app, FSO delete the folder but they clean the session and clean all...
2
by: | last post by:
Let me explain step wise. 1.. I have a site running on port 5555 2.. If contains web.config file with contains <Forms> authentication. 3.. The site contains a sub-folder named "MembersArea"...
2
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class...
11
by: ASP.NET User | last post by:
Hi I am in a shop where developers are required to work off of a networ share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe...
4
by: Anders K. Jacobsen [DK] | last post by:
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is...
11
by: Greg Smalter | last post by:
I'm converting some ASP web projects from VS 2003 to VS2005/ASP 2.0. The worst problem I've run into is all references (in codebehind CS files) to UserControls fail. I get the error "The type...
4
by: santel_helvis | last post by:
Hi there, I wanna open the folder using asp.net. I am using anchor link to do that. But in href part how shall I give the location. Anyone plz help me out. Thanks in advance
2
by: Robert Mago | last post by:
Hi, I have been using web usercontrols on 2003 for a very long time and i find them userful for modularity. Usually what i do is create a subfolder called 'UserControls' for example and placed...
1
by: =?Utf-8?B?RGFuaWVsIERpVml0YQ==?= | last post by:
First, I am using VS2005 with windows XP. I am having an issue where I cannot see the images in my usercontrols or the ASPX pages they are dropped onto (the ASPX pages are on the root of the site...
6
by: ManagedCoder | last post by:
Hi, My requirement is as follows: I need to set the HttpExpires (enable content expiration - set to 7 days) on a folder within a virtual directory. I have been able to set the HttpExpires...
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?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.