Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Dynamic URL

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., www.somewhere.com 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.

axWebBrowser1.Navigate("https://+psServerName+/aspnet/safecopackage/Quotespecialty.aspx?Q_STATUS=NEW&QuoteID="+psQuoteID);

Open in new window

0
66chawger
Asked:
66chawger
  • 4
  • 3
1 Solution
 
Jaime OlivaresCommented:
axWebBrowser1.Navigate("https://"+psServerName+"/aspnet/safecopackage/Quotespecialty.aspx?Q_STATUS=NEW&QuoteID="+psQuoteID);
0
 
Jaime OlivaresCommented:
look at the quotes near to psServerName

also you can do as:
axWebBrowser1.Navigate(string.Format("https://{0}/aspnet/safecopackage/Quotespecialty.aspx?Q_STATUS=NEW&QuoteID={1}",psServerName,psQuoteID));
0
 
66chawgerAuthor Commented:
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?
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
Jeff PerryWindows AdministratorCommented:
I am a little confused as to what you are asking but I will take a crack at it.

If you want +psServerName = www.somewhere.com in your redirect then yes you would need the DNS record for www.somewhere.com to be created and functional before your redirect containing +psServerName would become functional.
0
 
66chawgerAuthor Commented:
That is cool, using identifers or aliases....Let me give that a whirl.  I think this is very clean!
0
 
Jaime OlivaresCommented:
>>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 "
0
 
66chawgerAuthor Commented:
It is nice to know even the easier questions get exposure.  Great Job!
0
 
66chawgerAuthor Commented:
Jaime, can you look at my post regarding passing a variable from my code behind to my re-directed .cs user control?
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now