How to write a data source content field in a hyperlink field so that i can pass parametters ?
-
this is the code :
SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" />
this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused: -
this is the code :
SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" />
this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused: -
this is the code :
SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" />
this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused: -
this is the code :
SortExpression="[IsSubsciption]" /> "CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" />
this is the error details : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Literal content (' Line 27: SortExpression="[IsSubsciption]" /> Line 28: Line 29: Line 30: :(( :(( :(( :(( :confused:Are you using a gridview? If so, I find it much easier to use the onRowDataBound E.G. OnRowDataBound="GridView1_RowDataBound" protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { // on each row which is DataRow populate dropdown lists if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView drv = (DataRowView)e.Row.DataItem; //For datatable it is dbdatarecord if datareader HyperLink hl = (HyperLink)e.Row.FindControl("HyperLinkId"); hl.NavigateURL = "CrossSellEdit.aspx?id=" + drv["id"].ToString(); } }
I didn't get any requirements for the signature