Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Dynamic URL

Posted on 2007-12-04
Medium Priority
Last Modified: 2013-12-16
Ok, here is what should be a simple one!  I have a URL which I use in a redirect.  I want to be able to code the server value, e.g., as a value in the URL.

I want to do something like the example below where psServerName represents the web address.  I don't have the syntax correct, or else I need to build the entire URL before using it in the re-direct.


Open in new window

Question by:66chawger
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20405934
LVL 55

Accepted Solution

Jaime Olivares earned 500 total points
ID: 20405946
look at the quotes near to psServerName

also you can do as:

Author Comment

ID: 20405976
Jaime, I see you got another one of my questions!!!  So you can use double quotes inside double quotes? Maybe I just got ahead of myself.  I did try this and saw that when I used the double quotes inside double quotes that the url is in, the rest of the URL was not underlined....e.g., like when you enter an email address or hyperlink in word......make sense?
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!


Expert Comment

by:Jeff Perry
ID: 20405977
I am a little confused as to what you are asking but I will take a crack at it.

If you want +psServerName = in your redirect then yes you would need the DNS record for to be created and functional before your redirect containing +psServerName would become functional.

Author Comment

ID: 20405997
That is cool, using identifers or aliases....Let me give that a whirl.  I think this is very clean!
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20406231
>>So you can use double quotes inside double quotes?
I think this is not the case here, but in this case, you have to use \"  inside, instead of a single "

Author Closing Comment

ID: 31412667
It is nice to know even the easier questions get exposure.  Great Job!

Author Comment

ID: 20412868
Jaime, can you look at my post regarding passing a variable from my code behind to my re-directed .cs user control?

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question