English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi.
I need some help, I want to transfer the input data from a Web Page to another one, I'm working in ASP using Visual Basic language. I guess I need to use Post and Get method, but I don't know how to do it. Can anybody help me, please?
I really apreciate samples of the code.

2006-07-11 04:13:11 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

Is this page inside the same application? If so, you can use Server.Transfer and the request querystring will survive, since there's no round tripping.

i.e.

Dim Fred, Bob
Fred = Request("Fred")
Bob = Request("Bob")

If Bob = "Yes, send me to the other page" then
Server.Transfer "BobPage.asp"
End if

...and then BobPage.asp can also query Request("Bob")

2006-07-11 04:30:20 · answer #1 · answered by evolver 6 · 3 0

Switch to ASP.NET and you won't need to transfer the form data to another web page. Since ASP.NET uses the postback model (a much more elegant solution) the data entered into a web form is simply sent back to the same page.

You can catch the "post back" in the code with

if (!this.Page.IsPostBack)
{
// postback
// process the input data
}
else
{
// initial load of the page
// display the input form
}

Now you've reduced what would have taken two files to just one.

2006-07-11 05:27:23 · answer #2 · answered by Anonymous · 0 0

to get one web page to send data to another you need to either use forms or on the link that a user clicks on include get information in the form url.asp?var1=val1&var2=val2...

If you don't want the user to see what information is being sent in a form use a hidden field

2006-07-11 04:29:24 · answer #3 · answered by John J 6 · 0 0

i imagine surprising thanks to sen the id is question String like -- > mypage.aspx?id = If QueryString ("id") <> no longer something Then ------- your code ------ Else ------- your code ------ end If

2016-10-14 08:41:52 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers