search application

F

Filip

Hi All,

a while ago I had to write a asp.net search application. The start
page is a html page, which calls a aspx file that shows the search
results, using a datagrid. So far no problem.
But: now they want an "advanced search". This new search has to be
a aspx page (it contains dropdownlists that are filled from a
database). I can make this advanced search, but how do I call the
the original search.aspx from there?

The html file calls the aspx by using a Get request which is
triggered by a submit button.

html file --------------------------> advanced-search.aspx
! hyperlink-click !
! !
! submit - get /
! / How ?
! /
search.aspx <----------------------------/

I suspect I have to use Response.Redirect, but how do I pass the
values entered in the advanced-search to the search.aspx?
Or do I have to use a completely different approach?

Any help or suggestions for alternative approaches would be highly
appreciated. Thanks.
 
S

S. Justin Gengo

Filip,

I would just tack them on to the query string.

I you are already using GET anyway then putting the new parameters into the
query string is the perfect solution.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top