0

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!

2
  • You can pass it as part of the URL (get method) Commented Mar 28, 2014 at 19:28
  • it's a sensitive data, can't be seen in the browser bar. Commented Mar 31, 2014 at 12:22

2 Answers 2

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"];
Sign up to request clarification or add additional context in comments.

1 Comment

it did not work... the page2 is a MVC3 page and receive a null value
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!!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.