|
|
|
start date: Sat, 11 Aug 2007 00:50:57 +0200,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
Jan j@sss
|
|
2
Göran Andersson
|
|
3
Jan j@sss
|
how to go back one level up?
Hi,
The asp.net application is in http://myserver/myapp .
At a certain moment, the user is into subdirectory
http://myserver/myapp/mydir.
How can he go back to 'start.aspx' in the 'myapp' directory in javascript?
I tried this in javascript:
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myscript", _
" window.location.href='/myapp/start.aspx';", True)
This works, but i would have a more general way (without mentioning the
'myapp' dir)
Thanks
Chris
Date:Sat, 11 Aug 2007 00:50:57 +0200
Author:
|
Re: how to go back one level up?
Jan wrote:
> Hi,
>
> The asp.net application is in http://myserver/myapp .
>
> At a certain moment, the user is into subdirectory
> http://myserver/myapp/mydir.
>
> How can he go back to 'start.aspx' in the 'myapp' directory in javascript?
>
> I tried this in javascript:
> Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myscript", _
> " window.location.href='/myapp/start.aspx';", True)
>
> This works, but i would have a more general way (without mentioning the
> 'myapp' dir)
>
> Thanks
> Chris
'../start.aspx'
--
Gran Andersson
_____
http://www.guffa.com
Date:Sat, 11 Aug 2007 05:12:15 +0200
Author:
|
Re: how to go back one level up?
Thanks
"Gran Andersson" schreef in bericht
news:epiOtV82HHA.5852@TK2MSFTNGP02.phx.gbl...
> Jan wrote:
>> Hi,
>>
>> The asp.net application is in http://myserver/myapp .
>>
>> At a certain moment, the user is into subdirectory
>> http://myserver/myapp/mydir.
>>
>> How can he go back to 'start.aspx' in the 'myapp' directory in
>> javascript?
>>
>> I tried this in javascript:
>> Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myscript", _
>> " window.location.href='/myapp/start.aspx';", True)
>>
>> This works, but i would have a more general way (without mentioning the
>> 'myapp' dir)
>>
>> Thanks
>> Chris
>
> '../start.aspx'
>
> --
> Gran Andersson
> _____
> http://www.guffa.com
Date:Sat, 11 Aug 2007 11:02:23 +0200
Author:
|
|
|