做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

ASP.NET 窗體間傳值的方法

來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 22:40:43
文檔

ASP.NET 窗體間傳值的方法

ASP.NET 窗體間傳值的方法:假設(shè)ParentForm.aspx 頁(yè)面上有TextBox1文本框和Open按鈕點(diǎn)擊Open按鈕彈出SubForm.aspx,SubForm.aspx頁(yè)面上有TextBox1文本框和Close按鈕點(diǎn)擊Close按鈕關(guān)閉SubForm.aspx頁(yè)面,并把子頁(yè)面SubForm.aspx文本框的值顯示到父頁(yè)面ParentForm
推薦度:
導(dǎo)讀ASP.NET 窗體間傳值的方法:假設(shè)ParentForm.aspx 頁(yè)面上有TextBox1文本框和Open按鈕點(diǎn)擊Open按鈕彈出SubForm.aspx,SubForm.aspx頁(yè)面上有TextBox1文本框和Close按鈕點(diǎn)擊Close按鈕關(guān)閉SubForm.aspx頁(yè)面,并把子頁(yè)面SubForm.aspx文本框的值顯示到父頁(yè)面ParentForm

假設(shè)ParentForm.aspx 頁(yè)面上有TextBox1文本框和Open按鈕
點(diǎn)擊Open按鈕彈出SubForm.aspx,SubForm.aspx頁(yè)面上有TextBox1文本框和Close按鈕
點(diǎn)擊Close按鈕關(guān)閉SubForm.aspx頁(yè)面,并把子頁(yè)面SubForm.aspx文本框的值顯示到父頁(yè)面ParentForm.aspx 的文本框上。
父窗體前臺(tái)代碼:
代碼如下:
      <script type="text/javascript">
        function OpenSubForm(ret) {
            var strPath = "subForm.aspx"
            var nHeight = 500
            var nWidth = 500
            var feature
            feature = "Height= " + nHeight + ",Width=" + nWidth + ",top=30,Left=30";
            feature += ",dependent=yes,location=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no;";
            window.open(strPath+"?Ret_Form=Form1&Ret_Value="+ret,'subForm',feature).focus();
            return false;
        }
    </script>

父窗體后臺(tái)代碼:
代碼如下:
private void Page_Load(object sender, System.EventArgs e)
        {
            // ページを初期化するユーザー コードをここに挿入します
            this.Button1.Attributes.Add("onClick","return OpenSubForm('TextBox1');");
        }

子窗體后臺(tái)代碼:
代碼如下:
        private void Button1_Click(object sender, System.EventArgs e)
        {
            string strScript =string.Empty;
            string strRetForm = String.Empty;
            string strRetValue=String.Empty;
            strRetForm=Request.Params["Ret_Form"];
            strRetValue=Request.Params["Ret_Value"];
            if (strRetForm == string.Empty)
            {
                strRetForm= "document.forms[0]";
            }
            strScript = "<script language=javascript>";
            strScript += "window.opener." + strRetForm;
            strScript += "." + strRetValue + ".value='" + this.TextBox1.Text.Trim() + "';";
            strScript += "window.close();";
            strScript += "</script>";
            Response.Write(strScript);
        }

聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

ASP.NET 窗體間傳值的方法

ASP.NET 窗體間傳值的方法:假設(shè)ParentForm.aspx 頁(yè)面上有TextBox1文本框和Open按鈕點(diǎn)擊Open按鈕彈出SubForm.aspx,SubForm.aspx頁(yè)面上有TextBox1文本框和Close按鈕點(diǎn)擊Close按鈕關(guān)閉SubForm.aspx頁(yè)面,并把子頁(yè)面SubForm.aspx文本框的值顯示到父頁(yè)面ParentForm
推薦度:
標(biāo)簽: 方法 方式 之間
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 丹江口市| 靖远县| 青海省| 股票| 巴东县| 乌拉特中旗| 兖州市| 衡阳县| 澄江县| 陕西省| 满城县| 蓝山县| 黎平县| 孟州市| 高雄市| 滦南县| 格尔木市| 和林格尔县| 宝兴县| 河池市| 弥勒县| 明星| 高密市| 黄浦区| 福州市| 佛学| 儋州市| 田林县| 刚察县| 扶沟县| 绥德县| 巧家县| 青海省| 武平县| 若羌县| 电白县| 日土县| 崇文区| 蒙自县| 惠水县| 滨州市|