|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Passing Data Between FormsHi 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 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 > 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 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 >
Other interesting topics
old with the new, forms...
ClientScript.RegisterClientScriptBlock in ASP.NET 2.0 ODP.NET migration Quotes within Response.Write, Please help? newbie: Help, I have problems with this! Presentation layer depends on ???? How to set visibility of a control in DataList template? Getting a Profile Value! I need a Server.MapPath advice ImageURL |
|||||||||||||||||||||||