I have the following scenario and am looking for the best way to structure things.I am finding lots and lots of conflicting advice online.
·I have a user control on my home page for a simple search.
·I have a user control on a search page for a detailed search.
·I have a user control on a third page that displays search results in the same format, no matter which form was used (simple or detail) to begin the search.
I’ve tried several things that get me to the detail page, but am getting various errors getting the data from the calling form.Before I provide any of my broken code, I was hoping to start clean with thoughts and suggestions.
Standard for submitting form to another page
I have the following scenario and am looking for the best way to structure things. I am finding lots and lots of conflicting advice online.
· I have a user control on my home page for a simple search.
· I have a user control on a search page for a detailed search.
· I have a user control on a third page that displays search results in the same format, no matter which form was used (simple or detail) to begin the search.
I’ve tried several things that get me to the detail page, but am getting various errors getting the data from the calling form. Before I provide any of my broken code, I was hoping to start clean with thoughts and suggestions.
Thanks.
Hi Connie,
There isn't really and hard fast rule, so kind of depends on your circumstances.
The easiest option would be to use the query string or plain old input fields, and just check Request.QueryString[] or Request.Form[] for the value.
Many thanks
Matt
is working on a reply...