Newbe: Howto post values between webforms??

  • Thread starter Thread starter Anders Sundberg
  • Start date Start date
A

Anders Sundberg

Hi there, I'm a new to this ASP.Net and is trying around.

I know how to use $_POST and $_SERVER ['varablename'] to retreive values
between webpages, sendpage.php and receivepage.php

But I don't seem to figure out how it works in ASP.Net (use language=VB)????

I've got a default .aspx page that I've added a asp:textbox and asp:button,
and in the button_click added .aspx.vb event inserted the codesnippet
"response.redirect("receiver.aspx")" to redirect the webbroser to that
receiver page.

But how to I output the above textbox.text on the receiver.aspx page???

/anders
 
You can use the HTTP_GET or HTTP_POST method of passing it from page to page. I mean, use the QueryString or use the POST method to collect it from the properties exposed on the source form
- Askar
 
Hi,

OK so if I use the webforms textbox with the id="username" and a button to
send the textbox value. That is the file sender.aspx
From the file receiver.aspx I use the code
<% response.write("you sent the username " & HTTP-GET['username'].text) %>

to output the sent value

/Anders

Askar said:
You can use the HTTP_GET or HTTP_POST method of passing it from page to
page. I mean, use the QueryString or use the POST method to collect it from
the properties exposed on the source form.
 
Back
Top