Link to home
Start Free TrialLog in
Avatar of ARACK04
ARACK04

asked on

Server Tag in Hyperlink control

How can I get this to work:

Right now it's not evaluating the server tag, and generating <%=Eval .... right in the HTML.  I've tried #Bind #Eval, and =Eval - not sure what else to put.

                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hypPropNumber" Text="<%#Bind('PropertyNumber') %>" NavigateUrl="~/WellRecord.aspx?PropertyNumber=<%=Eval('PropertyNumber') %>" />
Avatar of prairiedog
prairiedog
Flag of United States of America image

Is this TempateField in a GridView?
ASKER CERTIFIED SOLUTION
Avatar of prairiedog
prairiedog
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial