OperationCompositionComponent classFile methods are static and suitable for performing only one operation. All methods are performing a security check.The fileinfo class is suitable for providing an object for a file that performs multiple
PostAnd getDifferences:
Post: Form submission, used to transmit data to the server.
Get: String submission (only ASCII characters). It is used to obtain data from the server. (It is the default form method)
Post: it implicitly submits your
1. Use QueryString variableQueryString is a simple method for transferring values. It can display the transmitted values in the address bar of a browser. For exampleThis method can be used if one or more values with low security requirements or
1. Create a Verification Action
Public JsonResult CheckName (string name){Return Json (! Name. Contains ("1"), JsonRequestBehavior. AllowGet );}
2. Add a Remote tag on the object
Public class UserEntity{[Required][Remote ("CheckName", "User",
I tried to use jquery's ajax, so I did a test. However, I started to think that the error message "parsererror" is returned as a json format problem, and finally found that it was a web. I lost two lines in config and got depressed for a long time.
Single Sign-On: If a B C is used to log on to any of the three websites, no logon is required for other websites.
My Implementation ideas:
Cookie is used. Because the cookie exists on the client, all three websites of a B and C can access it.
The
The foreign server seems to have locked the web due to security issues in some dll editors to be referenced. some permissions in config are not available if FreeTexbox is tried first, and FCKEditor is not available because dll files are to be
This section mainly sets the database:
The database used in the software is MS SqlServer2000. Create a database, Books, and create two data tables in the database:
User table:
Code highlighting produced by Actipro CodeHighlighter
First, add the following method to the Code: //
/// Set the control that triggers the event when you press enter on the page
///
/// control object that triggers the event
Public static void SetEnterControl (System. Web. UI. Control Ctrl)
{
Page
When you use asp.net for web development, the information in On the page can be dynamically specified through the cs file of asp.net, but if many pages are processed like this, it is no different from adding a base class BasePage (inherited from
Encryption and decryption of URL parameters in asp.net
Encryption Code
public static string Encode(string str, string key) { DESCryptoServiceProvider provider = new DESCryptoServiceProvider();
Core tips:On the Internet, you will often see that the address suffixes of many websites use XX. HTML or XX. ASPX and other operations are similar to static file identifiers. have you ever wondered whether it is actually a static file generated one
1. database access performance optimization
Database Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
Write the event: public class UsePageEventArgs: EventArgs in the user control.
{
Private int pageindex;
Public UsePageEventArgs (int pageindex)
{
This. pageindex = pageindex;
}
Public int Pageindex
{
Get {return pageindex ;}
Set {pageindex = value
1. Add DLL reference. The file name is AspNetPager. dll.2. Add the code in the aspx file. The following is the paging style code:
3. Write using Wuqi. Webdiyer In the CS file;4. obtain the data source. The following is a method to obtain the data,
In fact, it cannot be a summary. I just need to repeat what I learned today, hoping to deepen my memory.Recently, a project is a laboratory information management system based on WEB. ASP was used in the past. However, ASP cannot reflect the concept
I. Processing Between IIS and ASP. NET
IIS 5 is not discussed here. It has been basically eliminated in the actual production environment. Let's look at ASP.net request processing process 1 of IIS 6 (the integration mode of IIS 7 is not discussed
Deployment Optimization
We all know that different deployment methods have an impact on the performance of the site. Some friends may already know this. In any case, let's talk about this problem in detail, the right of a familiar friend should be
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