how to go back one level up?

J

Jan

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
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Jan said:
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'
 

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

Top