how to go back one level up?

  • Thread starter Thread starter Jan
  • Start date Start date
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
 
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'
 
Back
Top