Posted on: 8/29/2014 8:05:38 PM | Views : 430

I have a web form where I want to pull some data from a db table and display the data in an asp:hyperlink control.
I want to hyperlink to a new page passing an 'id' parameter in the query string. I'm trying to do it like this:
ASPX:
<div id="PageContent"> ...<p> <asp:Label ID="lblDistrictCouncillor" runat="server" Text="District Councillor: " /> <asp:HyperLink ID="hyperlinkCouncillor" runat="server" Text='<%# Eval("MemberName") %>' NavigateUrl='<%#"DistrictCouncillor.aspx?PersonId= " + Eval("PersonId") %>' Font-Bold="True" /></p> ...</div> I get the data for the hyperlink control from the db in code-behind like this:
...

Go to the complete details ...