• 弹出窗口,关闭窗口刷新


     <input type="button" value="Edit" class="btn btn-primary btn-xs" onclick="EditComp()" />

    <script type="text/javascript">
            function EditComp()
            {
                var comp_id =$("#<%=lblCompID.ClientID%>").text();
                if(comp_id=="" )
                {
                    return;
                }
                var url = "../edit/EditCompany.aspx?comp_id=" + comp_id.toString() ;
                layer.open({
                    type: 2,
                    title: 'Edit Company',
                    closeBtn: 1,
                    shade: [0],
                    area: ['910px', '550px'],
                    content: [url, 'yes']

                });
            }

    function closeLayer() {
                 var index = parent.layer.getFrameIndex(window.name);
                 parent.layer.close(index);
                 winClose();
             }

    <input type="button" value="Close"  onclick="closeLayer()"  class="easyui-linkbutton  searchFormButton"/>

    第二种:

    <script >

    function openwin(id)
    {

    window.open("newwindow.aspx?id="+id,"newwindow","height=500,width=800,toolbar=0,member=no,scrollbars=no,reszable=no,location=no,stuatus=no")
    }
    </script>

    repeater包含的  <asp:Label ID="lblID" runat="server" Text='<%# Eval("id")%>'></asp:Label>

    <a onclick="openwin(<%# Eval("id")%>)">----</a>跳转

    点击添加按钮,弹框js

    <script>
            function Add() {
                $('#div_add').dialog('open').parent().appendTo($("form"));
            };
            function ColseDialog() {
                $('#div_add').dialog('close');
            }

        </script>

    <input style="margin-left:5px" type="button" onclick="Add()" value="Add Password" class="btn btn-primary btn-xs" />

    <div id="div_add" title="addPassword" class="easyui-dialog" closed="true" style=" 450px; height: 250px; padding: 10px;" data-options="iconCls:'icon-save',closable:true">
              <table>

              <tr>

                  <td>
                        <asp:TextBox ID="txt_password" runat="server" Width="220px" CssClass="easyui-textbox"></asp:TextBox>
                    </td>
                </tr>
              
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button ID="btnConfirmAdd" runat="server" Text="Add" CssClass="easyui-linkbutton searchFormButton"     OnClick="btnConfirmAdd_Click" />
                        <input style="margin-left: 10px;" type="button" value="Cancel" onclick="ColseDialog()" class="easyui-linkbutton  searchFormButton" />
                    </td>
                </tr>
            </table>
        </div>

  • 相关阅读:
    面向对象编程技术的总结和理解(c++)
    对类的理解(c++)
    对指针和引用的理解(c++)
    3DES对称加密算法(ABAP 语言实现版)
    org.springframework.util.Base64Utils线程安全问题
    SAP传输请求自动发布
    ABAP WB01 BDC ”No batch input data for screen & &“ ”没有屏幕 & & 的批输入数据“
    SAP S/4 1610 IDES + HANA 2.0 安装
    ABAP语言实现 左移 <<、无符号右移 >>> 位移操作
    ABAP表抛FTP通用程序
  • 原文地址:https://www.cnblogs.com/suan1717/p/6483683.html
Copyright © 2020-2023  润新知