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
Solved

How use tilda in respone.redirect

Posted on 2012-03-29
2
385 Views
Last Modified: 2012-03-29
Is it possible to add https:// to response.redirect("~/order form.aspx") I use the same codebehind for several web sites and I use response.redirect("~/order form.aspx")  so the code can be easly used between different sites. Problem is some sites are secure. so i want to add https:// to the response.redirect("~/order form.aspx") . ANy ideas how I can do this?
0
Comment
Question by:whiwex
2 Comments
 
LVL 16

Accepted Solution

by:
SriVaddadi earned 500 total points
ID: 37785375
var url = String.Format("https://{0}{1}",  
      Request.ServerVariables["HTTP_HOST"] ,
      ResolveUrl("~/order form.aspx"));
 
      Response.Redirect(url);
0
 

Author Closing Comment

by:whiwex
ID: 37785555
Thanks That worked great
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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