"Arjen" <bo*****@hotmail.com> wrote in message
news:c5**********@news5.tilbu1.nb.home.nl...
Hello,
Why is this:
<%# DataBinder.Eval(Container.DataItem, "Id") %>
not working? (I see this in the url... I want to see the id as value)
Complete code:
<asp:HyperLinkColumn DataTextField="From" HeaderText="Van"
NavigateUrl='~/MailMessage.aspx?id=<%# DataBinder.Eval(Container.DataItem,
"Id") %>' SortExpression="From">
</asp:HyperLinkColumn>
Hi,
The aspnet newsgroup would probably be more appropriate for ASP.NET
questions.
Anyway, you need to add the runat="server" attribute. Also note that the <%#
tag is evaluated when you call DataBind for the page or the control. For
more information, check out this tutorial:
http://samples.gotdotnet.com/quickst...tabinding.aspx
Regards,
Sami