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.Cur rent.Response.R edirect("~/Install/Install.aspx?mo de=Install")
redirects to host domain.
Does anyone know where the problem could be? .NET framework, IIS or
somewhere else? 3 4325
Doesn't
HttpContext.Cur rent.Response.R edirect("/Install/Install.aspx?mo de=Install")
work for redirecting within your application ?
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Karo" <gx@siol.no-spam.com> wrote in message news:U6******** *********@news. siol.net... 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.Cu rrent.Response. Redirect("~/Install/Install.aspx?mo de=Install") redirects to host domain.
Does anyone know where the problem could be? .NET framework, IIS or somewhere else?
Well, it's open source portal DotNetNuke, and I'm not yet ready to replace
all ~ ... yet
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:ez******** ******@TK2MSFTN GP10.phx.gbl... Doesn't HttpContext.Cur rent.Response.R edirect("/Install/Install.aspx?mo de=Install") work for redirecting within your application ? Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"Karo" <gx@siol.no-spam.com> wrote in message news:U6******** *********@news. siol.net...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.C urrent.Response .Redirect("~/Install/Install.aspx?mo de=Install") redirects to host domain.
Does anyone know where the problem could be? .NET framework, IIS or somewhere else?
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.
"Karo" <gx@siol.no-spam.com> wrote in message
news:U6******** *********@news. siol.net... 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.Cur rent.Response.R edirect("~/Install/Install.aspx?mo de=Install") redirects to host domain.
Does anyone know where the problem could be? .NET framework, IIS or somewhere else?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: monte |
last post by:
Hello, I need to parse a tilde delimited file and output it to a
tabbed delimited file. Example file example.txt
data1~data2~data3~data4
data5~data6~data7~data8
I need to extract data2, data4, data6 and data8 from the above file
and output it to a file delimited by tabs:
data2 data4 data6 data8
|
by: CHristian Niss |
last post by:
hi there,
in a lot of user controls we are using "~" in server tags to reference objects
like images <img src="~/images/something.gif" runat="server" />.
with framework 1.0 the tilde got replaced by "/virtualdir" for example. now in
framework 1.1 tilde is replaced with relative paths like "../../"
this makes a lot of trouble, especially when you dynamically load user controls
to an aspx-page. it seems that this relative "../.."-path...
|
by: MB2 |
last post by:
I have code in a User Control for an image button like this:
<asp:ImageButton id="__0" runat="server" text="Delete"
ImageUrl="~/Images/ImageLibrary/icon_delete.gif" />
This used to work and it would display the image properly.
However, since installing the latest service pack for the .NET
Framework 1.1, the tilde seems to be expanding improperly. The code
that is expanded to shows this:
<input type="image"...
|
by: Shawn |
last post by:
Hi,
For a few years, I have been developing each of my clients websites using a
seperate web site (unique IP) to solve problems with relative URL's between
my local dev station and the production server.
Recently, I have needed to collaborate with other developers using Source
Safe. But, in order to get source safe working properly, you really need to
be working in virtual directories of the default web site.
|
by: Jared Tullis |
last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers
(using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard
application map. The web.config points *.html to a HttpHandler of our
design. This setup serves over a million page views daily with almost no
hassle whatsoever. We have brought a few affiliates onto our system who
have URLs still floating in Google, Y! and other search engines from before
they...
| |
by: Mythran |
last post by:
In other web servers, more specifically apache and even non-web servers you
can use the tilde character to specify the root directory, or home. Before
I go reinventing the wheel (by parsing a tilde in the web controls for iis)
is there a setting that allows similar functionality in IIS?
Thanks,
Mythran
|
by: ibiza |
last post by:
Hi all,
I have a problem which I don't understand with the "~" mark in a
NavigateUrl property of an asp:HyperLink. I have this in a master page,
to build the standard menu (rMenuItems is a Repeater):
Protected Sub rMenuItems_ItemDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.RepeaterItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
|
by: jbolty |
last post by:
There have been a few threads talking about using the tilde ~, to
reference the webroot path. My problem though is handling an unexpected
tilde in a url.
this url:
http://localhost/mysite/~Default.aspx
returns this error:
|
by: =?Utf-8?B?QWxm?= |
last post by:
Hello all,
I am having trouble dealing with ~(tilde) in my .Net 1.1 web application,
specially when it comes through the URL. For example, when someone requests
the following URL: www.mysite.com/~mypage.aspx, my web application will
through the following error (with custom errors turned off):
Server Error in '/' Application.
--------------------------------------------------------------------------------
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |