473,811 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Url rewriting and inner links

Hi,

I have a problem and I haven't found a good solution yet...

I'm using Url rewriting for my message board so it's more readable to have
something like mysite.com/1040/message.aspx instead of
mysite.com/message.aspx?id =1040

When a user posts a message, I use Response.Redire ct to redirect him to its
message. It goes like that:

Response.redire ct("message.asp x#last");

The thing is that when it comes to url rewriting, the # is translated in %23.

How can I add a inner link using url rewriting? Is it possible?

Thanks!

Steph
Nov 19 '05 #1
3 1172

try
Response.redire ct("mysite.com/1040/message.aspx");

Nov 19 '05 #2
It works but I still can't add the inner link:

Response.redire ct("mysite.com/1040/message.aspx#la st");

It's still converted like:

Response.redire ct("mysite.com/1040/message.aspx%23 last");

Any other idea?

Steph
"Srim" wrote:

try
Response.redire ct("mysite.com/1040/message.aspx");

Nov 19 '05 #3
I found the solution:

Simply add a "&" before the "#".

Response.redire ct("message.asp x&#last");

Steph
"Stephane" wrote:
Hi,

I have a problem and I haven't found a good solution yet...

I'm using Url rewriting for my message board so it's more readable to have
something like mysite.com/1040/message.aspx instead of
mysite.com/message.aspx?id =1040

When a user posts a message, I use Response.Redire ct to redirect him to its
message. It goes like that:

Response.redire ct("message.asp x#last");

The thing is that when it comes to url rewriting, the # is translated in %23.

How can I add a inner link using url rewriting? Is it possible?

Thanks!

Steph

Nov 19 '05 #4

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

Similar topics

1
1910
by: name? | last post by:
Basically, I've got a project with a huge number of existing pages, some absolute URL's, some relative. It's getting a new shopping cart using sessions, and needs to work without cookies (client's requirement, non-negotiable) if the user has them disabled. To that end, I've enabled session.use_trans_sid which handles relative URL's. The question is, does anyone have a good solution for rewriting absolute URL's? I know, I know, offsite...
3
3272
by: Jamie Jackson | last post by:
I'm rewriting all links' onclick events, but I'm having a problem. The onclick event that I'm inserting works correctly in Opera, but not in FF or IE. I'm retroactively adding the statement "return promptBeforeOpening();" FF and IE rewrite it as I would expect them to, but it turns out that that doesn't work (no disclaimer pops up, and the link is not disabled):
1
313
by: Jeti [work] | last post by:
what is the easiest way for implementing url rewriting?
2
1291
by: KMA | last post by:
My site has dynamicaly generated pages. Most of the URLs are false, and I used to trap them in a generic 404 page, which stripped off a unique part of the URL, built the page then sent that back to the client. But then the address bar always showed the 404 plus the query string which contains the originally requested URL. Apart form that all was well. So to circumvent this I used URL rewriting in Global.asax. Same idea, just look for...
3
4746
by: Greg Collins [Microsoft MVP] | last post by:
I have done a bit of research of Url Rewriting, but as yet have been unsuccessful at getting it to work well, and there are issues around what file types are supported and how much code you want to write. While working on a similar, though partially unrelated, issue, I came across a possible alternate method. Before I pursue this method in full, I wanted to get opinions of others as to any unforseen issues I might encounter. The method is...
3
16514
by: Zeff | last post by:
Hi all, I have a relational database, where all info is kept in separate tables and just the id's from those tables are stored in one central table (tblMaster)... I want to perform a query, so all data from the separate tables is shown in a view (instead of the reference id's pointing to the separate tables...) I have some troubles formulating the SQL statement: I tried:
8
4285
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm having trouble with URL rewriting using HttpApplication.Context.RewritePath in a web application I've created. Everything works, but the links (css, images) in the pages break when I do a URL rewrite. For example, my masterpage has css links in the header to "~/_css/myfile.css". The masterpage is in a folder called "/_mp".
3
1255
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I have a web app I'm developing in C#. I have a UrlRewrite HTTP Handler, which seems to work, apart from when I ask it to do something if NOT. Here's the directory structure... /default.aspx /gallery/default.aspx /gallery/viewartist.aspx
5
2066
by: teddysnips | last post by:
Having upsized my client's back-end DB to SQL Server, the following query does not work ("Operation must use an updateable query"). UPDATE tblbookings INNER JOIN tblREFUNDS ON tblbookings.TransFromID = tblREFUNDS.BookingID SET tblREFUNDS. = tblbookings! bookingid WHERE (((tblREFUNDS.)=0) AND ((tblbookings.TransFromID) Is Not Null)); I tried rewriting it as follows, with the same problem:
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10648
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
10389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10135
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
9205
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
7670
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
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
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
3
3018
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.