5
Reply

How you can pass two values using Query String to other page?

Nishant Arora

Nishant Arora

11y
27.2k
2
Reply

    by using ? and & operators we can pass two values.

    Response.Redirect("~/Report/UserAnswerReport.aspx?EID=" + lblExamNm.Text + "&PostNm=" + lblPostNm.Text + "");

    Response.Redirect("quicksearch.aspx?lookfor=" + drop_l.SelectedValue + "&agefrom=" + txtagefrom.Text + "");

    The keyword '&' is used to differentiate/pass multiple parameters.. Eg: Response.Redirect("RequiredPage.aspx?"+"Name="+txtName.text+"&Age="+txtAge.text);

    Response.Redirect("~/Report/UserAnswerReport.aspx?EID=" + lblExamNm.Text + "&PostNm=" + lblPostNm.Text + "");