Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2007, 12:56 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default query string not rewriting, bookmarks not working

Why is TBH not rewriting the query string when I change categories, and is there a way to fix this?

For example, when I change categories from the dropdownlist in the ManageArticles page and select another category, the articles displayed in the grid change correctly. However, the URL query string still stays the same:

http://localhost:xxxx/TBH_Web/Admin/....aspx?CatID=28

This becomes an issue for bookmarking - I tried bookmarking the ArticleListing page in Firefox 1.5, as well as adding it to favorites in IE7, while displaying different articles. When I open the bookmarks, the same articles show: beer-related, which is corresponding to category 28.

I suspect this has something to do with the postback model? Please forgive me if this is something blatantly obvious as I am still fairly new to asp.net.
__________________
Alex

- TheBeerHouse Mods Repository
http://www.sashka.com/TheBeerHouse/thebeerhouse.html
  #2 (permalink)  
Old January 18th, 2007, 07:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It almost sounds like a Server.Transfer is used somewhere instead of a Response.Redirect, but my gut tells me it's not going to be that easy!

  #3 (permalink)  
Old January 30th, 2007, 07:44 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I searched but didn't find any Server.Transfer references in the solution.

Maybe it has to do something with the cache?

Anyone else experiencing this ??
  #4 (permalink)  
Old February 1st, 2007, 01:12 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It appears the postback is not changing the query string.

One solution has been found - adding a Response.Redirect to redirect the page to BrowseListings with the new CatID appended.

Is there a way to have the postback change the query string automatically, without having to perform a Redirect?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete query not working Mitch PHP Databases 4 January 4th, 2006 08:00 AM
UPDATE query is not working Sujit Joshi Beginning PHP 1 July 6th, 2005 04:07 PM
ASP connection string not working codehappy Classic ASP Basics 2 May 18th, 2005 08:43 AM
Want to Strip Chars from a String - Not Working WebDevel Javascript How-To 2 January 10th, 2004 01:08 PM
Query String not working!!!!!!! cmiller Beginning PHP 1 December 16th, 2003 12:30 PM



All times are GMT -4. The time now is 06:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.