1. revised title
You can use this. Title = "the title to be modified" to modify the title on the page.
2. Modify the meta tag
Htmlmeta is mainly used.
Htmlmeta bb= New
Htmlmeta ();BB. Name= "Keywords";//Or description
BB. Content=
Provide several excellent foreign
Source codeDownload Site and ASP learning site
Learning ASP:Http://www.codefixer.com
ASP Forum:Http://forum.snitz.com/forum/Http://www.webwizforums.comHttp://www.webwizguide.info
Just call the method below.
Private void getinfo (){String cpuinfo = ""; // CPU serial numberManagementclass cimobject = new managementclass ("win32_processor ");Managementobjectcollection MOC = cimobject. getinstances ();Foreach (managementobject
I have been studying Asp.net for almost half a year and have not achieved much. Now I can only do some simple enterprise websites, because my work is on network management,
Learning programming is just a step-by-step. I have been using several entry-
1. Create loosely coupled components
1. "decomposition Focus" is a very important feature in the MVC model. We want to create components in the application as independent as possible, so that we can manage less dependencies. Ideally, each component
Essentially, LINQ-to-SQL can map classes and methods to data source objects.
Overview
Most applications are centered on a data warehouse. Over the years, architects have been modeling problem domains through objects while designing applications.
The httprequest object contains all the information contained in the HTTP data package that passes in the Web request. The content of the HTTP header, query string, input field of the form, path, and URL information is organized in different sets
A master page is a special file referenced by applications (and pages) and contains the static layout of pages. Each sub-page can customize a region and reference a special placeholder control on the master page. Child pages are the combination of
Image Viewer processing program
To speed up processing, IIS directly processes some static resources in Web applications without calling ISAPI extensions. These static files include images and HTML files. If you directly request a GIF or JPG file
ASP. NET provides four levels of state management tools: applications, sessions, pages, and requests. Each layer has dedicated container objects.
Application Status
The following table summarizes the main functions of each State object:
Although
The WCF Service can output JSON and transmit data over HTTP (not necessarily using soap for data packaging ). What we need to do is to enable the endpoint to bind the model to webhttpbinding and enable web script calling through new features.
Build
The runat attribute is the key to programming ASP. NET controls. If the label in the aspx Source Code does not contain the runat attribute during declaration, it is regarded as plain text and output word by word. Otherwise, the content of the tag is
Code snippet:
After processing by the ASP. NET Runtime Library, the preceding statement generates the following HTML code:
Note: The server ID attribute is expanded into two HTML attributes: Name and ID. This is considering the compatibility of
View code
The interception Request Code rewrite. First, it intercepts the URL request, analyzes the current URL, and finally jumps to the corresponding page. so our first step is to intercept URL requests. to create a new class library named URL,
In winfrom, we will use a component that overwrites the URL to implement pseudo-static, to provide a good experience and SEO. Now we want the URL to meet
1. Easy to remember and spell
2. Brief, reflecting the SITE STRUCTURE
3. You can remove the end
If ASP. NET cannot run on IIS, try the following two methods:1.. Net Plugin-I to reinstall IIS mapping (mainly used for matching the extention of files such as aspx and asmx ). Run the following command in the c: \ windows \ Microsoft. NET \
Excel export using ASP
Dim S, SQL, filename, FS, myfile, X
Set FS = server. Createobject ("scripting. FileSystemObject ")'-- Suppose you want to store the generated Excel file as follows:Filename = server. mappath ("order.xls ")'-- If the original
This class is used to process strings and is written by foreigners. I have added descriptions of the functions and parameters in it.
Usage:
================== Test. asp =============================
Dim StrSet STR = new stringoperationsTest = Str.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service