473,406 Members | 2,707 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,406 software developers and data experts.

Remove Querystring FroM URL

I think I have my brain still stuck in the classic ASP model and can't
seem to solve this easy problem.

I have a datalist with paging. I have my page numbers appended with the
page (i.e. ?page=2). The paging works as designed but when I click the
submit button to view/refresh the list, the querystring with the last
page stays in the url. How can I remove the "?page=x" from the end
after submitting?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 4005
Ren
Try using HttpContext.RewritePath

Here are a couple articles on this:
http://msdn.microsoft.com/library/en...epathtopic.asp
http://www.aspnetpro.com/NewsletterA...200309pj_l.asp

Amy Snyder <am**@yahoo.com> wrote in message news:<e4**************@TK2MSFTNGP09.phx.gbl>...
I think I have my brain still stuck in the classic ASP model and can't
seem to solve this easy problem.

I have a datalist with paging. I have my page numbers appended with the
page (i.e. ?page=2). The paging works as designed but when I click the
submit button to view/refresh the list, the querystring with the last
page stays in the url. How can I remove the "?page=x" from the end
after submitting?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

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

Similar topics

3
by: Arpan | last post by:
A link has the following URL: <a href="Page1.asp?cname=<%= Request.QueryString("cname") %>&cadd1=<%= Request.QueryString("cadd1") %>&cadd2=<%= Request.QueryString("cadd2") %>&cplace=<%=...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
2
by: Fredrik Rodin | last post by:
Hi! I need to be able to change, add or remove items in the QueryString. Let say I have the following scenario: Page_1.aspx display a dropdown list. This list is post-back enabled. It can...
1
by: Amy Snyder | last post by:
I think I have my brain still stuck in the classic ASP model and can't seem to solve this easy problem. I have a datalist with paging. I have my page numbers appended with the page (i.e....
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
2
by: ABC | last post by:
How to remove the queststring of a page?
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
2
by: omlac | last post by:
Hi all How do i delete/remove a Querystring variable. say Request.QueryString); i have tried this Request.QueryString.Remove(0) but it didnt remove it nor did it give an error message. I also...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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,...
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
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,...
0
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...

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.