zoukankan      html  css  js  c++  java
  • 1.the response.request,server,session in a selfcreate class

       class A

     { 
        protected HttpSessionState Session; 
        protected HttpServerUtility Server;
        protected HttpRequest Request;
        procteted HtpResponse Response;

      public A(object parent)
        {
        Try
            {
           Session=((System.Web.Ui.Page)parent).Session;
            Server=((System.Web.Ui.Page)parent).Server;
            Request=((System.Web.Ui.Page)parent).Request;
            Response=((System.Web.Ui.Page)parent).Response;
           }
        Catch
        {
            Session=((System.Web.Ui.UserControl)parent).Session;
            Server=((System.Web.Ui.UserControl)parent).Server;
            Request=((System.Web.Ui.UserControl)parent).Request;
            Response=((System.Web.Ui.UserControl)parent).Response;
        }

      }

         

  • 相关阅读:
    ExIco应用程序图标保存器1.0发布
    Object.defineProperty
    es6代理 proxy 学习
    node js学习记录
    css默认值列表
    关于 keyup keydown keypress
    转载一篇关于css选择器的,很透彻
    ......图片上传
    mimi
    css 开发心得
  • 原文地址:https://www.cnblogs.com/Winston/p/1025276.html
Copyright © 2011-2022 走看看