it depends on what you want to pass, if it's a secure date you should use either sessions or database (sessions are much easier) .. you just say in your first page "session["mySession"] = myObject;" and in the second page you convert it to what ever your object it.
as for none secure data, you can send it through query string (URL) by using the following code: "Responce.Redirect("myPage.aspx?param1=value1¶ m2=value2¶m3=param3")"
and on myPage.aspx.cs use the following code "string strparam1 = Request.QueryString["param1"]"
of course NEVER send sensitive data through URL, and it only works with strings .. hope I helped you man..
contact me if you needed anything :)
Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
|