Send parameter to another ASP.Net page

Viewed 11806

I have class in c# called "Point".

public class Point(){
.
.
}

In page1.aspx I created:

Point p1 = new Point();

I want to send it to page2.aspx. I try to send with:

Response.Redirect("~/page2.aspx?x=p1");

And get it in page 2 with:

Point p2 =Request.QueryString["x"];

It does not work. Can you help me please?

3 Answers
Related