Tilde (~) in url

K

Karo

I have troubles with tilde (~) character on my host. It gets replaced by
server name instead of domain name from where redirect is coming from. Code
HttpContext.Current.Response.Redirect("~/Install/Install.aspx?mode=Install")
redirects to host domain.

Does anyone know where the problem could be? .NET framework, IIS or
somewhere else?
 
J

Juan T. Llibre

Doesn't
HttpContext.Current.Response.Redirect("/Install/Install.aspx?mode=Install")
work for redirecting within your application ?
 
K

Karo

Well, it's open source portal DotNetNuke, and I'm not yet ready to replace
all ~ ... yet
 
O

Oleg Ogurok

Tilde points to the root of your ASP.NET application.
If in your case it points to the root of your host, create a virtual
directory, e.g. DotNetNuke, using IIS Manager and point it to the actual
directory where ASPX pages located. It will become the root of your
application.

-Oleg.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top