473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Page "Redirectio n"

I'm working on an ASP.NET project and would like to have calls to
directories map to certain querystring paths.... for example, I would like

http://localhost/myapp/somedirectory/

to actually request

http://localhost/myapp/main.aspx?pg=somedir

Is this possible?

thnx
Nov 18 '05 #1
1 1194
I'll answer my own question:

http://www.theukwebdesigncompany.com...y-urls-asp.php
"Ryan Moore" <ry*******@hotm ail.com> wrote in message
news:Oq******** *******@TK2MSFT NGP14.phx.gbl.. .
I'm working on an ASP.NET project and would like to have calls to
directories map to certain querystring paths.... for example, I would like

http://localhost/myapp/somedirectory/

to actually request

http://localhost/myapp/main.aspx?pg=somedir

Is this possible?

thnx

Nov 18 '05 #2

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

Similar topics

10
2276
by: Matt Adams | last post by:
A web page which exists for a couple of years under a certain address (e.g. http://www.aaa.com/bbb/ccc.html) is (should be) moved to another location (e.g. http://www.newloc.com/ddd/eee.html) Ok. I could replace the ccc.html by another page which forwards the user to the new page. However what I want to achieve ist that the search engines should
10
16568
by: Roland | last post by:
Hello, the example code is the following(the number in parentheses at the beginning are just for reference)(The complete HTML file is at the end of this article): (1)window.location = 'http://www.google.com'; (2)alert("I'm still here!"); (3)window.open("http://www.slashdot.com", "_blank");
4
13567
by: Roger | last post by:
Hi, I have been using this trick for some time on a home page. The idea is to verify the user's browser has Javascript enabled before allowing the user to access a logon page. The NoJavascript.html page has instructions for turning on Javascript. <a href="/NoJavascript.html" onclick="window.location='/Logon';return false;">Logon </a>
6
4595
by: José Joye | last post by:
Hello, I'm currently reading the MS Developing Web applications with c# (and VB.net). In the chapter related to Error management, there is a sample about "Page-Level Error Pages" eg: In my form: ========
7
2796
by: ibiza | last post by:
Hi all, I have a problem which I don't understand with the "~" mark in a NavigateUrl property of an asp:HyperLink. I have this in a master page, to build the standard menu (rMenuItems is a Repeater): Protected Sub rMenuItems_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
5
3658
by: Diffident | last post by:
Hello All, Most of you might be familiar with this problem i.e, viewstate is lost whenever we navigate from the one page to another. Does anyone have a remedy for this problem? On Page A, I have a datalist which has a "select" link for each row(I have 1000's of such rows). When a user clicks a particular select link, I am redirecting him to Page B(this redirection is being done in Datalist_ItemCommand). Once on Page B, when user...
2
2078
by: Athenian | last post by:
Hi guys. Currently I need a javascript (client side) or vbscript(server side) code to check automatically for session expiration and force the redirection to a message page or the log-in page. All web site is built around asp pages. Thank you very much for your help
1
3522
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID, @filesize("$userPath/xml/redirect.xml")); @fclose($fileID); // XML PARSE
3
1439
by: tuananh87vn | last post by:
hello, i'm going to set up a small website in php. I suppose that it will use no database so I just need to write the main file only, say, the index.php. this site contains some pages which are similar in form but are different in content in the middle, or course. for example, I have the file index.php, then index.php?id=1 is for the first page, index.php?id=2 is for the second one and so on... like any other website, links are put on the...
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8646
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.