If you need string concatenation, why not bind in the CodeBehind? It is
easier to employ and less error prone than "simple binding".
Now, as for why it is not working. Examine the following:
http://samples.gotdotnet.com/quickst...tabinding.aspx
Protected Sub Page_Load(Src As Object, E As EventArgs)
DataBind()
End Sub
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Adam J Knight" wrote:
Hi all,
I am trying to bind a value to a hyperlink control.
For some reason it isn't working.
What have i missed?
<asp:HyperLink ID="lnkQuestions" NavigateUrl='Questions.aspx?ID=<%#
DataBinder.Eval(Container.DataItem,"ID")%>' Runat="server">view
questions</asp:HyperLink>
The databinding expression isn't working..it just displays as a string.
If i take it out of the Hyperlink control ...it works fine???
Cheers,
Adam