I want only to pass a string between 2 applications (webform and mvc3) using the most easy way. Not web-service, single sign-on, membership api. Just a string that can't be seen in the browser bar. I would like an example sending from a textbox and a button and getting to show on the label. Any reference? Thanks!
Asked
Active
Viewed 73 times
2 Answers
0
page1.aspx:
<asp:TextBox ID="TextBox1" runat="server" />
<asp:Button ID="Button1" PostBackUrl="page2.aspx" runat="server" Text="Submit" />
and in page2.aspx code boehind:
Label1.Text = Request.Form["TextBox1"];

YaakovHatam
- 2,314
- 2
- 22
- 40
0
after a lot of time...i found the only solution that worked for me...StringBuilder
Response.Redirect which POSTs data to another URL in ASP.NET
i think that is not the best way to do this, but worked for me.
thanks for all!!