473,396 Members | 1,764 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,396 software developers and data experts.

aspx file location

my application directory in short:

Blog (dir)
-blog.aspx
-blog.aspx.cs
default.aspx
login.aspx

All this located in c:\MyWebs\BlogApplication\

from the blog.aspx code I use Response.Redirect(login.aspx) and tries to
find that file within Blog directory. If I add "\login.aspx" it tries to
find it in the uppermost root, that is under "MyWebs" directory!! Help!
Nov 19 '05 #1
2 1398
Response.Redirect("../login.aspx")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Daves" <db****@simnet.is> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
my application directory in short:

Blog (dir)
-blog.aspx
-blog.aspx.cs
default.aspx
login.aspx

All this located in c:\MyWebs\BlogApplication\

from the blog.aspx code I use Response.Redirect(login.aspx) and tries to
find that file within Blog directory. If I add "\login.aspx" it tries to
find it in the uppermost root, that is under "MyWebs" directory!! Help!

Nov 19 '05 #2
Hello Steve C. Orr [MVP, MCSD],

Even better may be to use the ~ operator. ~ resolves to the application root.
This way, this code behind file could be moved to wherever in the heirarchy
without breaking.

Response.Redirect("~/login.aspx");

--
Matt Berther
http://www.mattberther.com
Response.Redirect("../login.aspx")

"Daves" <db****@simnet.is> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
my application directory in short:

Blog (dir)
-blog.aspx
-blog.aspx.cs
default.aspx
login.aspx
All this located in c:\MyWebs\BlogApplication\

from the blog.aspx code I use Response.Redirect(login.aspx) and tries
to find that file within Blog directory. If I add "\login.aspx" it
tries to find it in the uppermost root, that is under "MyWebs"
directory!! Help!


Nov 19 '05 #3

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

Similar topics

2
by: EMW | last post by:
Hi, I use the following to start my ASPX: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>index</title> <meta name="vs_defaultClientScript"...
6
by: Plon Plon | last post by:
Hi all, I currently have a problem that looks too strange for me, can someone help me? I'm running an ASPX page that calls a C# component (DLL), and this DLL works with an XML file. I've...
3
by: sumit | last post by:
Hi, I am having an asp.net application installed on client's development server. Previously, When i was hitting the url to access the aspx page it was working fine and css was also getting...
2
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The...
0
by: EMW | last post by:
Hi, I use the following to start my ASPX: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>index</title> <meta name="vs_defaultClientScript"...
4
by: Randall Parker | last post by:
XP Home does not come with IIS. Can one use VS 2003 or some other tool to view aspx pages one is developing and do that on XP Home without having IIS on the machine?
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
3
by: Greg Collins [Microsoft MVP] | last post by:
Okay, this is driving me nuts now. I spent all last night researching newsgroup postings, web articles, etc. Running multiple sites off the same shared hosting service, I want to be able to...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
3
by: =?Utf-8?B?TWlrZQ==?= | last post by:
I have an asp.net 2.0 web application that I have pre-compiled and deployed to a Windows 2003 server. When I try to access the web application I get the following message in my browser: 'The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
0
agi2029
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,...

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.