Creating HttpHandlers and HttpModules
Introduction
ASP.net allows to extend it functionality in two main ways:
httphandlers
HttpModules
Http handlers are special applications that typically the files with handle certain. For example if you request a
Copy CodeThe code is as follows:
Untitled Page
' >
CS Code:
Copy CodeThe code is as follows:
Using System;
Using System.Collections;
Using System.Configuration;
Using System.Data;
Using System.Linq;
Using System.Web;
Using
cookie|request|response| problem
The self-coding procedure is as follows
Using System;
Using System.Web;
Using System.Web.UI;
Namespace Hnwl.config
{
Summary description of the cookdef.
Cookies-related definitions, as well as some tests involving
In order to achieve static page, I am in the blog park but searched for half a day. Finally, two scenarios were found:
Http://www.cnblogs.com/hsqzzzl/archive/2005/10/23/260122.html, when a static page is generated, the URL rewrite is used to
Asp.net| Upload
To achieve any number of file upload functions, click a button to add a File upload box, previously seen on the network hard disk. JavaScript I know how to implement any add upload file control, the problem is to add HTML control, I
Asp.net| Program Introduction
At the beginning of the internet age, the needs of clients are very limited;. htm files can meet their needs. However, over time, the expansion of client requirements extends beyond the functionality contained in. htm
First, we need to make clear two very important concepts:1, worker process (w3wp.exe). The worker process manages all requests from the client and responds. It is the core of the ASP.net application under IIS.
2, Application pool. It is the
C # language has a lot to learn, here we mainly introduce C # implementation thumbnails, including the introduction of C # Implementation thumbnails must rely on third-party components and so on.
In the past, C # implementation thumbnails on the
Cache | The picture in the problem program is displayed dynamically
The original plan to save the picture on the server side and then display
However, because of the cache problem of IE, the picture cannot be updated in real time
So instead of
As we mentioned earlier, the ASP.net routing system is mainly used in two aspects, one is to realize the separation of the request and physical address through the matching of the registration URL template and the physical file path, and the other
Asp.net| Timing
In the asp.net use of timers, broken treasure before the blog has written "in asp.net use timer (timer)", here mainly for ASP.net forums to describe its specific implementation.
In asp.net forums, the timer is applied as follows:1.
This is a library of classes written in vb.net for connecting to MySQL. You can use this class library to manipulate the MySQL database directly.
Before using this class library, you must install the
ODBC MYSQL 3.51 Download Address:
The role of forms validation has been very vague, do not know how to do, last night carefully read the next CSDN magazine, a little bit at the bottom of the heart, this morning a csdn, see Shi adult back to a post, is about ASP.net forms validation
Through the research of asp.net design thought, we have an essential understanding of the HttpApplication pipeline. The so-called pipeline, in fact, is the production line, composed of a series of steps, and HttpContext, is the line on the
asp.net| Static
Environment: Microsoft. NET Framework SDK v1.1Os:windows Server 2003 Chinese versionAsp. NET generates static HTML pagesThe FileSystemObject object for generating static pages implemented in ASP!This type of operation is involved in.
This article mainly introduces how asp.net gets the path in HTML form file, and the friends you need can refer to the following Code as follows: #region upload files to database and server public void Fn_upfiles () {//Traverse File table cell
Asp.net| Architecture
Modules are fairly low-level, and each request to the ASP.net application is triggered. The HTTP processor is more focused and processing requests that are mapped to this processor.
What the HTTP processor needs to implement is
There is a problem with Access databases in the background of developing a company's OA system recently.
In order to prevent the database from downloading for malicious people, you need to change the database suffix name aspx (ASP, etc.), and the
Create a class library that establishes the following classes:
Copy CodeThe code is as follows:
Using System;
Using System.Collections.Generic;
Using system.web;//references Web namespaces
Using System.Text;
Namespace Timerhttpmodule
{
public class
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.