• showModelessDialog AND window.open




    showModelessDialog:

    <Script Language="javaScript">
    function opmw(url)
    {
    showModelessDialog(url,"","dialogHeight:400px;dialogWidth:500px;resizable:no;help:yes;status:no;scroll:no")
    }
    </Script>

    <ItemTemplate>
    <a style="FONT-SIZE: 12px; COLOR: dimgray" href='javascript:opmw("view.aspx?custid=<%# DataBinder.Eval(Container.DataItem,"EmpID")%>")'>
    <%# DataBinder.Eval(Container.DataItem,"Name") %>
    </a>
    </ItemTemplate>

    -----------------------------------------------------------------------------
    window.open:

    <SCRIPT language="JavaScript">
    function f_open1(EmpID)
    {
    window.open('view.aspx?custid='+EmpID,'','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,top=0, left=0,width=500,height=400');
    return false;
    window.opener=null;
    window.close();
    }
    </SCRIPT>

    <ItemTemplate>
     <a href='' onClick='return f_open1("<%# DataBinder.Eval(Container.DataItem,"EmpID")%>")'style="FONT-SIZE: 12px; COLOR: dimgray"><%# DataBinder.Eval(Container.DataItem,"Name") %></a>
    </ItemTemplate>

    -----------------------------------------------------------------------------
    href:

    <ItemTemplate>
    <a href='<%# "view.aspx?custid=" + DataBinder.Eval(Container.DataItem,"EmpID")%>' target="_blank"  style="FONT-SIZE: 12px; COLOR: dimgray"><%# DataBinder.Eval(Container.DataItem ,"Name") %>
    </a>
    </ItemTemplate>

  • 相关阅读:
    机器学习之路--Python
    机器学习之路--Pandas
    机器学习之路--seaborn
    机器学习之路--Matplotlib
    囫囵吞枣——SVG
    囫囵吞枣——XML
    囫囵吞枣——Jquery 笔记
    囫囵吞枣——JavaScript
    囫囵吞枣——CSS3
    囫囵吞枣——CSS笔记
  • 原文地址:https://www.cnblogs.com/677/p/327416.html
Copyright © 2020-2023  润新知