Êä³öPDFÎĵµµ½ASP.NETÒ³Ãæ
protected
void Page_Load(object sender, EventArgs e)
{
try
{
//query the pdf path
string pdfna =
this.Request.QueryString["pdf"];
if (pdfna == null)
throw new Exception("This
page can not be accessed directly");
string pdf = "Reports\\" +
pdfna;
pdf = Server.MapPath(pdf);
//read all bytes
if (File.Exists(pdf) == false)
throw new Exception("This
report is not created");
FileStream fs = File.Open(pdf,
FileMode.Open);
byte[] buffer = new
byte[fs.Length];
fs.Read(buffer, 0,
buffer.Length);
fs.Close();
//write to response
Response.ContentType =
"application/pdf";
Response.AddHeader(
Ïà¹ØÎĵµ£º
Ò»¡¢ASP.NET Web Service´úÂë
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data.SqlClient;
namespace WebService1
{
/// <sum ......
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.ComponentModel;
namespace SQLHelper
{
/// <summary>
/// Class1 µÄժҪ˵Ã÷¡£
/// </summary>
public class SQLHelper
{
// Á¬½ÓÊý¾ÝÔ´
......
ÎåÖÖ³£¼ûµÄASP.NET°²È«È±ÏÝ
2004-10-18 19:30×÷Õߣºmenhal ³ö´¦£º¶¯Ì¬ÍøÖÆ×÷Ö¸ÄÏÔðÈα༣º·½ÖÛ
¡¡¡¡±£Ö¤Ó¦ÓóÌÐòµÄ°²È«Ó¦µ±´Ó±àдµÚÒ»ÐдúÂëµÄʱºò¿ªÊ¼×öÆð£¬ÔÒòºÜ¼òµ¥£¬Ëæ×ÅÓ¦ÓùæÄ£µÄ·¢Õ¹£¬ÐÞ²¹°²È«Â©¶´ËùÐèµÄ´ú¼ÛÒ²ËæÖ®¿ìËÙÔö³¤¡£¸ù¾ÝIBMµÄϵͳ¿ÆÑ§Ð»á£¨Systems Sciences Institute£©µÄÑо¿£¬Èç¹ûµÈµ½Èí¼þ²¿ÊðÖ®ºóÔ ......
asp.netÖÐapplication,session,cookie,viewstate,cache¶ÔÏó
ÔÚasp.netÖÐÄÚÖöÔÏóÈçapplication,session,cookie,viewstate,cacheµÈµÄÉú´æÖÜÆÚºÍÓ¦Ó÷¶Î§´Ó´óµ½Ð¡Îªapplication,cache,session,cookie,viewstate.
applicationºÍcacheµÄÓ¦Ó÷¶Î§¶¼ÊÇÔÚÕû¸öÓ¦ÓóÌÐòÖÐ.¶øsession,cookie,viewstateÔòÊÇ»ùÓÚÿ¸öÓû§,application ......
GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://www.svnhost.cn/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5 ......