I am using Asp.net Grid view bound field , in bound field i am using anchor tag to open value in new tab. My anchor tag is working perfectly as it is fetching value from database , but problem is that i want to show values from database to anchor tag some thing like my db value Here is my code
<asp:BoundField DataField="uniId" ControlStyle-CssClass="bg-darkGreen" HeaderText="ID" ReadOnly="True" SortExpression="uniId" HtmlEncode="false" DataFormatString="<a target='_blank' href='Details.aspx?uniId={0}'>uniId</a>" >
</asp:BoundField>
It is showing uniId in all rows instead of their values.
I have also tried <%=uniId%> but the problem remains same.
Templates- MethodMan<%#Eval("uniId")%>- Rohit