Solved

How use tilda in respone.redirect

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now