|
-
PostBack while tracking Query strings
Hi, I have a search page that has a textbox to search the title of publication, a dropdown list to specify which table to search, and an other dropdown list which specifies the sort order.
The constraint to my problem is that I have to pass all three form criteria in the URL. On my search result panel, I have a datagrid that displays 25 records at the time. So basically in my query string, I am passing title, table to search, sort order, and the page index of datagrid.
I also have a "Go Back" linkbutton which goes back to the search form panel and populates the controls based on original search whether there were any results or zero results (a requirement from client).
So the problem starts in the middle of search.
- I type in title and do my search (whether it will return results or no)
- I click on my "Go Back" linkbutton, page comes back with controls pre-populated with my cirteria...this is also handled by Query Strings and another var which will say "searchtype=goback" in query string
But here is where the problem starts. When I type in my new search after coming back from the result panel and click on search, it keeps my old search and still brings back the same results.
BTW, I am using response.redirects and passing vars over URL to handle events and then based on query strings, I call all the necessary functions.
What I am actually looking for is if someone has had a same problem. I can post the code but it is very long and beside there is nothing wrong with it yet. I have had it checked.
new to programming but getting ther
Similar Threads
-
By knightsg in forum Database
Replies: 0
Last Post: 02-16-2005, 08:07 AM
-
By Sunil Menon in forum .NET
Replies: 0
Last Post: 04-03-2002, 05:45 AM
-
By Mohan Ekambaram in forum Database
Replies: 0
Last Post: 12-09-2001, 11:56 AM
-
By Mohan Ekambaram in forum Database
Replies: 0
Last Post: 12-08-2001, 11:21 PM
-
By Russ Wickstrom in forum ASP.NET
Replies: 9
Last Post: 07-15-2000, 06:24 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks