Wednesday, April 23, 2008

PASSING VALUES THROUGH PAGES

Inorder to get requsted values from one page to another,programmers do much things.
Now i'll tell you an interesting part of passing of value.
Either how to do that correctly and easly.

Response.Redirect("Default2.aspx?name=" + TextBox1.Text.ToString());

Actualy this is the default page's code,its shows that the click in Default page must get the user to Default2.aspx.
And it must keep the value of that which the user entering in a Textbox in Default page.
*This sort of program is using for intenet banking and money transactions.
To do this we must input codes for encryption also.That we'll discuss later.

Ok
After that Deafult page code
move towards Default2.aspx.

Label1.Text = Request.QueryString["name"].ToString();

Here i am storing the value to a label control

That's it.
Hope you enjoyed.
Send me your replys

No comments: