I'm seeing this same problem on any thing that has a runat=server attribute
have you found a solution to this problem?
This:
<a runat="server" href='./check.aspx?x=<%# MyValue%>'>Check This</a>
produces:
<a href="./check.aspx?x=<%# MyValue%>">Check This</a>
and this:
<asp:hyperlink runat="server" NavigateUrl='./check.aspx?x=<%#
MyValue%>'>Check This Too</asp:hyperlink>
also produces
<a href="./check.aspx?x=<%# MyValue%>">Check This</a>
however this:
<a href="./check.aspx?x=<%# MyValue%>">Check This</a>
produces:
<a href="./check.aspx?x=whatevervalue">Check This</a>
TIA
Brian W
"Jason Wright via .NET 247" <> wrote in message
news:...
> Hiya,
>
> I've created a UserControl with some Custom properties and assigned
databinding expressions to the properties in the aspx. Does anyone know why
these expressions are not being evaluated?
>
> eg.
> <uc1:ControlX id="la" runat="server" ClientClick='javascriptfunction(<%#
DataBinder.Eval(Container.DataItem, "Id")%>)' />
>
> after processing renders in html as
>
> <table id="la" [other attributes] onclick="javascriptfunction(<%#
DataBinder.Eval(Container.DataItem, "Id"

%>)">
>
> instead of
>
> <table id="la" [other attributes] onclick="javascriptfunction(1)">
>
> ControlX is implemented as follows:
>
> public class ControlX : UserControl
> {
> private HtmlTable tableControl;
>
> [other stuff]
>
> public string ClientClick
> {
> set
> {
> tableControl.Attributes["onclick"] = value;
> }
> }
>
> [other stuff]
> }
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>EQjGw+v9EkOrDqH+z7828A==</Id>