473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How can i get a value of 2 forms?

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
Nov 18 '05 #1
2 933
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.

-----Original Message-----
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 andexecute the search with the user filters.
How can i do the same thing with ASP.NET, 'causes when the user click abutton i trigger the event Onclick, and there i call a redirect to otherform (the result form). How can i get the values of my first web form, suchas a request("...."), at my result page?

tks in adv.

Fabiano
.

Nov 18 '05 #2
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.
"Fabiano" <fm****@ctf.com.br> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: otto | last post by:
i need to read a variable in a javascript and translate it to a form in html the javascript variable is: <SCRIPT LANGUAGE='JavaScript'>RF2N('Total');</script> and i need to put that...
2
by: jb | last post by:
this is what I have in my funtion, but returns undefind value? if (document.forms.submit.value=="Cancel") { return true; }
21
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
2
by: jason | last post by:
The following (likely far from imperfect code), reports a value of NaN in the j4 display. I suppose the problem is I am not really passing the "checked" value of the radio button via .value ......
3
by: Joel | last post by:
hi, I have been trying this. I select an option availabe in select. and on selecting yes on the confirm msg save and submit it. Now i select another option and if i select no on the confirm...
9
by: ckerns | last post by:
I want to loop thru an array of controls,(39 of them...defaults = 0). If value is null or non-numeric I want to assign the value of "0". rowString = "L411" //conrol name if (isNaN(eval...
0
by: JSantora | last post by:
Essentially, InsertAT is broken! For the past couple of hours, I've been getting this "Parameter name: '-2147483550' is not a valid value for 'index'." error. Apparently, its caused by having...
5
by: Stuart | last post by:
Hi all, Iv'e got a page that has a mass amount of input fields, all of which require a decimal figure. To make it easier when it comes to inputting data, I'm trying to setup + and - links that...
19
by: Dave | last post by:
If Iwant to check if dataset1.SelectQuery1.column1 == System.DBNull.Value. How do I do this? What I wrote above will give an error. -- L. A. Jones
2
by: mndprasad | last post by:
Hi friends, Am new to AJAX coding, In my program am going to have two texbox which going to implent AJAX from same table. One box is going to retrieve the value of other and vice...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.