el ninho
el ninho

Reputation: 4233

ASP.net link to other page with passing parameter

my question is, how to call another aspx page from same project, with passing parameter, like ID-20?

Thanks.

Upvotes: 0

Views: 5032

Answers (2)

jose
jose

Reputation: 2543

In the source page, you can pass data with query string

.../target.aspx?Id=20

Then on target page get those values

String s = Request.QueryString["Id"];

Notice that you shouldn't pass any sensitive data by this method

Upvotes: 4

Wiktor Zychla
Wiktor Zychla

Reputation: 48230

Response.Redirect( "another.aspx?id=20" );

Upvotes: 3

Related Questions