DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jun 2004

    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

  2. #2
    Join Date
    Dec 2003
    I would recommend setting some breakpoints in your code and stepping through it in debug. This should provide you with enough information to determine how your code is executing.
    Microsoft MVP (Visual Basic)

Similar Threads

  1. Multi-table Select Query using Joins
    By knightsg in forum Database
    Replies: 0
    Last Post: 02-16-2005, 08:07 AM
  2. ViewState and postback query
    By Sunil Menon in forum .NET
    Replies: 0
    Last Post: 04-03-2002, 05:45 AM
  3. reg...select count distinct....query
    By Mohan Ekambaram in forum Database
    Replies: 0
    Last Post: 12-09-2001, 11:56 AM
  4. reg....count distinct query
    By Mohan Ekambaram in forum Database
    Replies: 0
    Last Post: 12-08-2001, 11:21 PM
  5. building SQL query strings
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.