<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            ASP.NET 中頁面傳參的幾種方法

            時間:2020-11-26 14:30:23 筆試題目 我要投稿

            ASP.NET 中頁面傳參的幾種方法

              答案:①.表單提交:

              …………

              Form1.submit();

              ……

              此種方法在ASP。NET中無效,因為asp.net 的表單總是提交到自身頁面,如果要提交到別一頁面,需要特殊處理

              ②.連接地址傳送:接收頁面:string str=Request[“param1”]

              ③.Session共享發送頁面:Session(“param1”)=”1111”; 接收頁面:string str=Session(“param2”).ToString();

              ④.Application 共享:發送頁面:Application(“p1”)=”1111”;

              接收頁面:string str= Application(“p1”).ToString();

              此方法不常使用,因為Application 在一個應用程序域范圍共享,所有用戶可以改變及設置其值,故只應用計數器等需要全局變量的地方

              ⑤.Cookie

              ⑥.Response.Redirrct()方式:Response.Redirrct(“target.aspx?p1=1111?m2=2222”)

              接收頁面:string str=Request[“p1”]

              ⑦.Server.Transfer()方式:Server.Transfer(“target.aspx?p1=1111?m2=2222”);

              接收頁面:string str=Request[“p1”]

            【ASP.NET 中頁面傳參的幾種方法】相關文章:

            唱歌中的幾種發音方法10-05

            關于asp.net中List的使用方法11-10

            網站頁面優化的方法08-10

            網站頁面優化方法11-15

            介紹幾個ASP.NET中容易忽略的方法函數11-10

            ASP顯示頁面時間的方法11-10

            在PPT中添加聲音的幾種方法11-11

            優化網站頁面的方法11-15

            php頁面緩存實現方法11-10

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看