Home All Groups Group Topic Archive Search About

Passing Data Between Forms

Author
3 Jul 2006 5:30 AM
thomson
Hi All,
           I do have a search page with lot of parameters, when i click
the Search button, it should redirect a new page with the search
results, Since there are lot of parameters , Query string option might
not be looking that good, Can anyone suggest a good strategy in doing
the same

Thanks in Advance

thomson

Author
3 Jul 2006 8:28 AM
Eliyahu Goldin
session variables?

Eliyahu

Show quoteHide quote
"thomson" <saintthom***@yahoo.com> wrote in message
news:1151904603.368850.50590@h44g2000cwa.googlegroups.com...
> Hi All,
>           I do have a search page with lot of parameters, when i click
> the Search button, it should redirect a new page with the search
> results, Since there are lot of parameters , Query string option might
> not be looking that good, Can anyone suggest a good strategy in doing
> the same
>
> Thanks in Advance
>
> thomson
>
Are all your drivers up to date? click for free checkup

Author
3 Jul 2006 6:39 PM
Steve C. Orr [MVP, MCSD]
You could post them in a hidden field.
You could save them in a database table.

Here's another nice, simple way to pass values from one page to another:
(VB.NET code)

'Add data to the context object before transferring
Context.Items("myParameter") = x
Server.Transfer("handle_error.aspx ")

Then, in handle_error.aspx.aspx:

'Grab data from the context property
Dim x as Integer = CType(Context.Items("myParameter"),Integer)

Of course there are a number of ways to pass values from one page to another
besides the querystring there are cookies, session, context, saving to a
temporary table in the database between each page, etc.
You'll have to decide which technique is best for your application.

Here are more good articles on the subject:
http://SteveOrr.net/faq/PassValues.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"thomson" <saintthom***@yahoo.com> wrote in message
news:1151904603.368850.50590@h44g2000cwa.googlegroups.com...
> Hi All,
>           I do have a search page with lot of parameters, when i click
> the Search button, it should redirect a new page with the search
> results, Since there are lot of parameters , Query string option might
> not be looking that good, Can anyone suggest a good strategy in doing
> the same
>
> Thanks in Advance
>
> thomson
>

Bookmark and Share