Solved

How use tilda in respone.redirect

Posted on 2012-03-29
2
384 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
compare between entities in entity framework 8 72
SqlDependency to get update from sql to my c# app 2 40
Search an image for an image 3 30
Convert datetime to time string 10 21
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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