答案 0 :(得分:1)
试试这个
<asp:LinkButton ID="lnkView" runat="server"
PostBackUrl='<%# string.Format("Pages/User/vFullSpecs.aspx?vID={0}", Eval("vID")) %>'>View Form</asp:LinkButton>
答案 1 :(得分:0)
试试这个
private void ListView1_SelectedIndexChanged_UsingItems(
object sender, System.EventArgs e)
{
if (listView1.SelectedItems.Count == 1)
{
string Myval =ListView1.SelectedValue; //Assumeing this is your ID
string MyText=ListView1.SelectedItems[0].Text
Response.Redirect("http:/newpage.aspx?ID="+Myval );
}
}