我有一个带有 GridView 的 ASP.Net 页面。在其中一个 GridView 单元格中有一个 HyperLink 控件,其 NavigateURL 属性设置如下:
NavigateUrl='<%# "~/telecom/SmartPhoneInventory.aspx?IMEI=" + Eval("IMEI") %>'
此页面上有一个 RadioButtonList (rblDeviceType)(不在 GridView 中),有四个值。我想向 HyperLink 的 NavigateURL 添加另一个查询字符串,以便:
NavigateUrl='<%# "~/telecom/SmartPhoneInventory.aspx?IMEI=" + Eval("IMEI") + "&devicetype=" + rblDeviceType.SelectedValue %>'
这当然不是正确的语法。有没有办法做到这一点?