SHIVANG RANA
SHIVANG RANA

Reputation: 384

Working with Query String in ASP.NET

"~/ActiveGoals.aspx?UserName={0}?SUName={1}"

This is a URL which will be redirected after a click event.

after that i want to utilize the second part of the QueryString i,e, SUName.

Upvotes: 0

Views: 96

Answers (1)

Shariful_Islam
Shariful_Islam

Reputation: 361

You have to use like

"~/ActiveGoals.aspx?UserName={0}&SUName={1}"

not

"~/ActiveGoals.aspx?UserName={0}?SUName={1}"

and then you get SUName from code behind

string str=Request.QueryString["SUName"];

Upvotes: 1

Related Questions