Thursday, March 22, 2012

Server.HtmlEncode DataBinder

Thanks - I tried the + and got this error message:
Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
is not valid.'<%#"/pageview.aspx?tab=1&catid="+DataBinder.Eval(Container.DataItem,"CAT_ID
")%>'
"Fossie" <gillmcd@.ihug.co.nz> wrote in message
news:1148112901.230750.47520@.j73g2000cwa.googlegroups.com...
> Thanks - I tried the + and got this error message:
> Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
> is not valid.
>
<asp:HyperLink id="hyperlinkk1" Runat="server"
NavigateUrl='<%#"/pageview.aspx?tab=1&catid="+DataBinder.Eval(Container.Data
Item,"CAT_ID")%>'</asp:HyperLink>
"Fossie" <gillmcd@.ihug.co.nz> wrote in message
news:1148112901.230750.47520@.j73g2000cwa.googlegroups.com...
> Thanks - I tried the + and got this error message:
> Conversion from string "pageview.aspx?tab=1&catid=1" to type 'Double'
> is not valid.
>

0 comments:

Post a Comment