In ASP.net, there are many ways to implement pseudo static, we mainly introduce the implementation of this interface by IHttpModule to solve the problem today.
For the entire application, the IHttpModule interface is needed if we need to process
Look at a lot of pages of the news is paging, I want to implement such a function to see their implementation of the method, basically a news into a number of HTML files saved, and then connected with the page number. (Do not know my understanding
Upload pictures upload pictures and modify their size
Thefile is a file Field HTML control
Thefile. Postedfile.saveas (System.Web.HttpContext.Current.Server.MapPath ("temp.png"));
MemoryStream memstream=new MemoryStream ();
System.Drawing.Image
Blogbasepage
On an article I showed you the principle of blogengine.net theme and some development norms, there are a lot of content and this article has links, suggest that the two articles together to see, this effect will be better. In this
how to generate a static page:
Programme 1:
Incoming URL returns the HTML code for a Web page
URL
public static string geturltohtml (String Url)
{
ErrorMsg = "";
Try
{
System.Net.WebRequest wreq = System.Net.WebRequest.Create (URL);
Get the
asp. NET relies on the. NET Framework class library, encapsulates a large number of functions, making uploading files very simple, there are mainly the following three basic methods, the need for friends can refer to the following Method One: Use
Asp.net| Collection | upload | download | chinese
The uploading and downloading of files is a technique that we often need to use in the actual project development process, here are some common methods.File upload is our actual project development
Let's take a look at the method (which omits some of the judgments and extensions):
build Old Excel code
Copy CodeThe code is as follows:
Export a group of objects to Excel
Types of objects to be exported
A set of Objects
exported filename
Solution
Cross-domain post requests are not advocated.
Cross-domain solution for Ajax in 0.jquery Jsonp
. ashx Code
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Web; Namespace KB. Dsn. Web.API.Tokens {
Asp.net| Schema | Request when a request arrives, it is routed to the Isapiruntime.processrequest () method. This method invokes the Httpruntime.processrequest method, which does something important ( Use Reflector to view
Asp. NET access to XML instance code:
Using System.Xml;
Initializing an instance of XML
XmlDocument xml=new XmlDocument ();
Import the specified XML file
Xml. Load (path);
Xml. Load (HttpContext.Current.Server.MapPath ("...). /7in10.xml "));
Asp.net| level Two domain name I understand that there are two options, there may be its way, I hope we have a lot of discussion! Basic ideas:
1. Domain name support for the pan-resolution, that is to refer to: A record *.xrss.cn resolution to the
Ajax|ajax Framework
Introduction to AjaxAjax is not a new technology, but an organic combination of some existing technologies, mainly including: XmlHttp, reflect. An AJAX framework basically includes a custom HttpHandler, a section of JavaScript
In the last article we talked about the Httpapplicatiion pipeline incident, so how do I deal with these pipe events, and how the request is performed in ASP.net, let's take a look at IHttpHandler and IHttpModule
Introduction:
Handling
Asp.net| Virtual Host
Now asp.net virtual host can generally bind multiple domain names, but the pages opened through these domains are the same. How to make the binding of these several domain names open the page (that is, the function of the
This example describes the ASP.net cache processing class. Share to everyone for your reference. Specifically as follows:
asp.net cache processing class.
Usage:
Just Copy this code into a new class file (. cs) and add it to your ASP. NET website.
Asp.net| Cache | data | Database asp.net database cache dependencies
by Peter A. Bromberg, Ph.D.
In ASP.net, the coolest feature of the cache class is its ability to control its behavior according to various dependencies. file-based dependencies
asp.net| Static
Environment: Microsoft. NET Framework SDK v1.1 os:windows Server 2003 Chinese version asp.net generate static HTML pages to generate static pages used in ASP FileSystemObject objects!
In. NET involves this kind of operation is System.
asp.net|web| Server | Asynchronous Summary: Matt Powell Describes how to use asynchronous Web methods on the server side to create high-performance Microsoft asp.net Web services.
Brief introduction
In the third column in September (English), I
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.