ASP.NET help!

Jadeaideply

New Member
Hi:<BR>In order to set a hyperlink for the text "Detail",I set the "NavigateURL" to "detalp.aspx?id="&<%#Container.DataItem("id")%>,but it raise error,This is the code<BR><asp:HyperLink id="hplink" Text="Detail"<BR>NavigateURL="detalp.aspx?id="&<%#Container.DataItem("id")%> runat="server"/><BR><BR>Please tell me how to write the "NavigateURL"?<BR><BR>Thank you!<BR><BR>Instead of using double quotes use single quotes around url and get rid of &<BR><BR><asp:HyperLink id="hplink" Text="Detail"<BR>NavigateURL='detalp.aspx?id=<%# Container.DataItem("id") %>' runat="server"/>
 
Back
Top