473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

how to go back one level up?

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.Get Type(), "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

Aug 10 '07 #1
2 2447
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.Get Type(), "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'

--
Göran Andersson
_____
http://www.guffa.com
Aug 11 '07 #2
Jan
Thanks

"Göran Andersson" <gu***@guffa.comschreef in bericht
news:ep**************@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.Get Type(), "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'

--
Göran Andersson
_____
http://www.guffa.com

Aug 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
4
by: Sergio Millich | last post by:
I have an annoyîng problem with a javascript tree. When you scroll down to the bottom of the tree and click to open a node the tree is refreshed and scrolls back to the top, hiding the node. Is...
132
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
14
by: google | last post by:
I am creating a new database for use within our company, that I'd like to make reasonably secure (short of a true server based solution). The back-end of a non-server based database seems to be...
0
by: John Phelan-Cummings | last post by:
Goal: To improve an application's performance by basing sub forms on queries: The application has a front and back-end. There is no SQL server back-end involved. I use a module file for,...
0
by: John Phelan-Cummings | last post by:
Goal: : To improve an application's performance by basing sub forms and combo The application has a front and back-end. There is no SQL server involved. I use a module for, seeking out the...
1
by: squidge1990 | last post by:
when a user logs in it will store there security level in a public variable called level. im trying to use this so that i can create a back button to instead of going back the login screen it will go...
1
by: =?Utf-8?B?SkI=?= | last post by:
Hello My pgm1 (User Interface Level) passes an empty ArrayList to pgm2 (Business Logic Level). pgm2 then calls pgm3 (Data Access Level) to populate the ArrayList. Question1: When pgm2 gets...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.