Link to home
Start Free TrialLog in
Avatar of MGGReddy
MGGReddy

asked on

Request.QuerStrin value in gridview hydperlinkfield

I want a querystring value to be concatenated in the  hyperlink field which has the value from another data column

Eg: DataNavigateFormatURLString="page.aspx?value=<%Request.QueryString["val"]%>&val2={0}"
output should be like page.aspx?value=12&val2=ABCD
12 is from the page's query string and ABCD is from another column in the datagrid.
<asp:HyperLinkField DataNavigateUrlFields="Plan ID" DataNavigateUrlFormatString="NominationRegistration.aspx?Plan={0}&schedule='<%$ Schedule>'"
                        HeaderText="Register" Text="Register for this Certification" />

Open in new window

Avatar of Avodah
Avodah
Flag of United Kingdom of Great Britain and Northern Ireland image

Try the following:

='<%# String.Format("page.aspx?value={0}&val2={1}", Request.QueryString["val"], val2) %>'

ASKER CERTIFIED SOLUTION
Avatar of jabcoco
jabcoco
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial