• Asp.net弹出新窗口,获得返回值


    Page.aspx 写法:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page.aspx.cs" Inherits="_Page" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Asp.net弹出新窗口,获得返回值</title>
        <script type="text/javascript" >
        function Pop()
        {      
            var result=showModalDialog('downs.aspx','subpage','dialogWidth:400px;dialogHeight:300px;center:yes;help:no;resizable:no;status:no'); //打开模态子窗体,并获取返回值
            document.getElementById("txt_id").value=result.split("|&|")[0]; //返回值分别赋值给相关文本框
            document.getElementById("txt_name").value=result.split("|&|")[1];
            document.getElementById("txt_pwd").value=result.split("|&|")[2];
        }
        </script>

  • 相关阅读:
    5402.绝对差不超过限制的最长数组
    快乐数
    无重复字符的最长子串
    数组中数字出现的次数
    盛最多的水
    对角线遍历
    LeetCode第24场周赛
    CSS样式
    笔记
    开关电源设计
  • 原文地址:https://www.cnblogs.com/zcy_soft/p/1834350.html
Copyright © 2020-2023  润新知