asp.net 绑定

<asp:HyperLink ID="HyperLink1" runat="server"

NavigateUrl='<%# Link.ToCategory(Request.QueryString["DepartmentID"], Eval("CategoryID").ToString()) %>'

Text='<%# HttpUtility.HtmlEncode(Eval("Name").ToString()) %>'

ToolTip='<%# HttpUtility.HtmlEncode(Eval("Description").ToString()) %>'

CssClass='<%# Eval("CategoryID").ToString() == Request.QueryString["CategoryID"] ? "CategorySelected" : "CategoryUnselected" %>'>

>
</asp:HyperLink>

 

<p>
    Price:<%# Eval("Price", "{0:c}") %>
</p>

posted @ 2013-01-30 11:15  yellowshorts  阅读(114)  评论(0编辑  收藏  举报