zoukankan      html  css  js  c++  java
  • NavigateUrl属性绑定 天高地厚

    1、使用javascript函数:
    <ItemTemplate>
         <asp:HyperLink ID="EditLink" Runat=server NavigateUrl='<%# "javascript:edit(escape(\"" + DataBinder.Eval(Container.DataItem, "subcid") + "\"))" %>' ImageUrl="image/edit.gif" text="编辑">
         </asp:HyperLink>
    </ItemTemplate>
    2、
    NavigateUrl='<%# String.Format("~/Manager/UpdateLog.aspx?ID={0}",Request.QueryString["cid"]) %>'

    NavigateUrl='<%# String.Format("~/Manager/UpdateLog.aspx?ID={0}",Eval(Request.QueryString["cid"])) %>'
    3、
    NavigateUrl='<%# "showarticle.aspx?cid=" + Request.QueryString["cid"] %>'

  • 相关阅读:
    5个排序算法
    原生侧边栏sidebar
    静态方法、实例方法、继承
    函数作用域之闭包与this!
    OOP面向对象编程(下)
    数组方法篇二
    对象
    nginx windows负载均衡入门
    NVelocity
    python3简单爬虫
  • 原文地址:https://www.cnblogs.com/net2012/p/3098386.html
Copyright © 2011-2022 走看看