All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
delphi中使用游标处理数据
实用的javascript网页特效实例代码片段_JavaScript技术_编程技术
弹出窗口window.open()的参数列表_JavaScript技术_编程技术
在ASP.NET,中实现单点登录_[Asp.Net教程]
visit c++中Connection与Recordset
ASP.NET2.0中实现图像转换过滤效果_.net资料_编程技术
浅谈javascript中面向对象技术的模拟_JavaScript技术_编程技术
千万级数据分页详细设计_[Asp.Net教程]
PHP开发中接收复选框信息的方法_php资料_编程技术
Asp.net总调用的3个事件_[Asp.Net教程]
Reading number is top 10 pictures
影评-疯子,我爱你
The real super beauty15
非笑不可:最强爆笑图片精选
Photographed the passion of the clients and prostitutes in the sex trade picture2
开始让人感动,后来......
赵惟依写真3
Catch prostitution woman in China
Wild animals melee moment of life and death2
看看什么叫美景
梦幻的风景
Download software ranking
Unix video tutorial18
Boxer's Top ten classic battle1
I for your crazy
豪门浪荡史
Ashlynn Video2
Unix video tutorial6
DreamWeaver8
Ashlynn Video5
Tram sex maniac 2 (H) rar bag5
传奇私服架设教程
delv published in(发表于) 2014/1/27 6:45:27 Edit(编辑)
.NET内置对象之Response对象_[Asp.Net教程]

.NET内置对象之Response对象_[Asp.Net教程]

.NET内置对象之Response对象_[Asp.Net教程]























NET内置对象
ASP.NET为方便程序员的开发提供了一些内置对象,包括Response、Request、Application、Session、Server和Cookies等六种。
Response对象
Response对象是HttpResponse类的一个实例,它允许将数据作为请求的结果发送到浏览器中,并提供有关响应的信息。
新建一个网站,包括两个网页,代码如下:
1、Default.aspx代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>



Response对象






onClick="Button1_Click" Text="弹出窗口" />





Default.aspx.cs代码:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.WriteFile(@"D:\My Documents\Visual Studio 2005\WebSites\Response对象\test.txt");
Response.Write("
");
Response.Write("写入成功");
}
protected void Button1_Click(object sender, EventArgs e)
{
//Response.Redirect("Default2.aspx");直接转到Default2.aspx
//弹出窗口
Response.Write("");
}
}
2、Default2.aspx代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>





弹出窗口






这是一个弹出窗口!

















































添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.