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

VS Web Server relative hyperlink problem

I have 2 projects, in the same Visual Studio solution, with hyperlinks
between them. These are file system projects that use the Visual
Studio Web Server, not my local IIS. When the Visual Studio Web
Server starts the projects are running on a port, and each project has
a different port.
For example, website1 runs on http://localhost:1234/webSite1
And website2 runs on http://localhost:5678/webSite2

Because of the port I cannot link between the two projects. In
webSite1 I want a relative hyperlink that links to webSite2 (href="/
webSite2/somePage.aspx"). How can I accomplish this?

These are existing projects that were built using IIS. Due to
security concerns we are no longer able to run IIS on our development
machines and must use the Web Server that comes with Visual Studio.
I'm trying to make this work with changing code or our design. Is
that possible?

Thanks for any help,
Don

Nov 14 '07 #1
1 1348
Don,

What you might try doing is setting the port to be static in the web
projects, and using the configuration file to specify the other site's
address. Then you can pull the base address from the configuration file to
build your URLs between the sites.

To set the port to be static, left-click on the web project. In the
Properties property grid, set "Use dynamic ports" to false, and set a value
for "Port number".

--
Hope this helps,
Steve - dotneticated.com

<ch*********@hotmail.comwrote in message
news:11*********************@v65g2000hsc.googlegro ups.com...
>I have 2 projects, in the same Visual Studio solution, with hyperlinks
between them. These are file system projects that use the Visual
Studio Web Server, not my local IIS. When the Visual Studio Web
Server starts the projects are running on a port, and each project has
a different port.
For example, website1 runs on http://localhost:1234/webSite1
And website2 runs on http://localhost:5678/webSite2

Because of the port I cannot link between the two projects. In
webSite1 I want a relative hyperlink that links to webSite2 (href="/
webSite2/somePage.aspx"). How can I accomplish this?

These are existing projects that were built using IIS. Due to
security concerns we are no longer able to run IIS on our development
machines and must use the Web Server that comes with Visual Studio.
I'm trying to make this work with changing code or our design. Is
that possible?

Thanks for any help,
Don

Nov 23 '07 #2

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

Similar topics

22
by: Fawke101 | last post by:
Hi there, I am having trouble with some data that is ripped from a SQL database and displayed as a hyperlink. The hyperlink inserts the data into a querystring so the next page can read it. ...
4
by: boclair | last post by:
Is this a known problem with IE6? I have a provisional two column layout, the left menu column is positioned absolute. The contents column is positioned relative. The contents column has an...
5
by: dfgasner | last post by:
I am very new at all of this and am using a book to put together an e-commerce website using VS.NET 2003. I have run into a problem and have looked around the web but with no help. I am getting...
7
by: laura | last post by:
I'm trying to understand fully Server.MapPath. I am writing an intranet for a small company and want to be able to put some files accessible to all, hyperlinked from the intranet and therefore,...
3
by: B Love | last post by:
I am trying to insert a hyperlink field which will link to a JPEG file in a folder on a server but for some reason, I am unable to do so. I can enter the same information in a browser, and it...
2
by: Peter | last post by:
Hi I have this situation where I need to upload a file to the server which is not web-server where the application relies, because my web servers are in the cluster and if the user uploads some...
1
by: Janna | last post by:
Hello tech savvy gurus! I hope someone can help me! THE PROBLEM: "Cannot open specified file" when I click on a hyperlink in an Access database when it is located on our server. THE...
4
by: John Kotuby | last post by:
Hi all, I am using a Repeater in conjunction with a SQLDatasource and SQL Server. One of the controls in the repeater is a HyperlLink as follows: <asp:HyperLink...
3
by: John | last post by:
Hi In a bound grid view I have the following hyperlink field; <asp:HyperLinkField DataNavigateUrlFields="FldDirections" DataNavigateUrlFormatString="{0}" HeaderText="Directions"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.