How can i get a value of 2 forms?

  • Thread starter Thread starter Fabiano
  • Start date Start date
F

Fabiano

Please,

with ASP, if i have a form where the user must input some data for a search,
when the user click SUBMIT, i call another ASP page that verifies and
execute the search with the user filters.
How can i do the same thing with ASP.NET, 'causes when the user click a
button i trigger the event Onclick, and there i call a redirect to other
form (the result form). How can i get the values of my first web form, such
as a request("...."), at my result page?

tks in adv.

Fabiano
 
Hi Fabiano,

check out this link -

http://groups.google.co.in/groups?hl=en&lr=&ie=UTF-
8&oe=UTF-8&threadm=03a301c3a888%24873b87b0%24a301280a%
40phx.gbl&rnum=5&prev=/groups%3Fq%3Dkaustav%2Bneogy%26hl%
3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26scoring%3Dd%
26selm%3D03a301c3a888%2524873b87b0%2524a301280a%
2540phx.gbl%26rnum%3D5

HTH.

Kaustav Neogy.
 
two possible answers :

Validate the entries in your OnClick, and store the verified parameters in a
query string or Session variable, and then Server.Transfer or
Response.Redirect to the new page.

or

Call Server.Transfer("your new page", TRUE), indicating the QueryString and
Form collections are to be preserved


Ideally - your validation would be handled on the page where the entry
occurred - making presentation of error messages and correction of the
invalid entry much simpler. After the entries are valid, you can navigate
to another page (via Redirect or Transfer) to process the request.
 

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

Back
Top