当前位置: 首页 > news >正文

蚌埠市网站建设_网站建设公司_网站建设_seo优化

网站建设公司行业描述,关于企业网站建设的必要性,wordpress搬家 登录报错,小米发布会直播平台我们学习来看一下Response对象。其实我们前面的教程中一直都在使用这个对象的Write方法。 这里我们用Response对象设置cookie。 ? 打开vb6,新建Activex Dll工程。工程名修改为fCom,类名修改为fZ5 引用“Microsoft Active Server Pages Object”对象库。 创建两个组件事件… 我们学习来看一下Response对象。其实我们前面的教程中一直都在使用这个对象的Write方法。 这里我们用Response对象设置cookie。 ? 打开vb6,新建Activex Dll工程。工程名修改为fCom,类名修改为fZ5 引用“Microsoft Active Server Pages Object”对象库。 创建两个组件事件OnStartPage以及OnEndPage 在事件OnStartPage中创建类ScriptingContent的一个引用。 实例化类ScriptingContent。 ? 代码如下 Option Explicit 对象的声明 Dim myResponse As Response Dim myRequest As Request Dim myApplication As Application Dim myServer As Server Dim mySession As Session ? ??? 当组件被创建的时候会触发这个事件 Public Sub OnStartPage(myScriptingContent As ScriptingContext) ???? 进行对象的实例化 ???? Set myResponse myScriptingContent.Response ???? Set myRequest myScriptingContent.Request ???? Set myServer myScriptingContent.Server ???? Set myApplication myScriptingContent.Application ???? Set mySession myScriptingContent.Session End Sub ? ??? 当组件被销毁的时候触发这个事件 Public Sub OnEndPage() ???? 销毁对象 ???? Set myResponse Nothing ???? Set myRequest Nothing ???? Set myServer Nothing ???? Set myApplication Nothing ???? Set mySession Nothing End Sub ? 从页面中设置Cookie,组件中得到 Public Sub GetCookie() ??? Dim myitem ??? 全部信息 ??? For Each myitem In myRequest.Cookies ??????? myResponse.Write myitem : myRequest.Cookies.Item(myitem) ??????? myResponse.Write ??? Next ??? ??? 单个信息 ??? myResponse.Write 其中用户姓名是 : myRequest.Cookies(username) ??? myResponse.Write ??? myResponse.Write 其中用户年龄是 : myRequest.Cookies(age) ??? myResponse.Write End Sub 组件中设置cookie,页面中得到 Public Sub SetCookie() ??? myResponse.Cookies(com_username) 龙卷风 ??? myResponse.Cookies(com_age) 26 ??? myResponse.Expires #9/13/2004# End Sub ? 编译成Dll文件,系统自动会注册。 否则就手工注册 Regsvr32 f:testfcom.dll ? 测试 打开visual interdev6.0,生成一个fz5.asp文件 dim obj set objserver.CreateObject (fcom.fz5) call obj.setcookie() Response.Write Request.Cookies(com_username) Response.Write Response.Write Request.Cookies(com_age)??? Response.Write ? 下面在页面中设置Cookie Response.Cookies(username) 龙卷风 Response.Cookies(age) 26 call obj.GetCookie() ? % ? 配置好虚拟目录在ie中执行fc5.asp文件可以看到 龙卷风 26 age: 26 username: 龙卷风 com_age: 26 com_username: 龙卷风其中用户姓名是: 龙卷风其中用户年龄是: 26 未完待续 转载于:https://www.cnblogs.com/Athrun/archive/2008/03/28/1127660.html
http://www.ihoyoo.com/news/130397.html

相关文章:

  • 东莞市民服务中心调整入场核验中山网站seo关键词
  • 网站建设问题新闻资讯海口h5公司
  • ps做网站首页wordpress主题zip
  • 哪家公司网站做得好网站做业务赚钱吗
  • 二维码网页制作价格北京seo平台
  • 福州工程建设信息网站嘉兴类网站系统总部
  • 邱县企业做网站推广站长工具站长之家
  • 做网站类网站费用网站做SEO优化
  • 给人做网站能赚钱吗做期货关注网站
  • 网站建设和营销什么网站可以做试卷
  • 做网站的应用临时工找工作网站做美缝
  • 南京网站销售上海官方网站建
  • 珠海做网站需要多少钱中国建设教育协会的网站
  • 合肥百度 网站建设建设微信网站设计制作
  • 移动端网站怎么提交百度上怎么发布作品
  • php c2c网站开发的 书网站运营职责
  • 网站建设 网站优化营销型网站建设专家外包程序员的出路
  • 网站建设合同需要缴纳印花税h5制作软件免费 fou
  • 市北网站建设wordpress的x站模板
  • 新网站一般多久收录网店推广怎么做
  • 旅行社网站建设规划的内容乐陵建设网站
  • 仙游h5做网站网站开发的未来发展
  • 做视频网站视频青岛 php 网站建设
  • 网站建设编辑器广西新农村建设工作专题网站
  • 要找企业做网站应该注意什么南京网站建设公司哪家好
  • 自己造网站坪地网站建设价格
  • 杭州棋牌软件开发公司简述优化搜索引擎的方法
  • php小网站wordpress 改字体
  • 安徽建设银行 招聘网站wordpress关于
  • 琪觅公司网站开发初中生编程入门先学什么