1. Record the login username and password when the system logs in successfully (some codes of the login function)Copy codeThe Code is as follows:Session ["id"] = user. id. ToString ();Session ["name"] = user. name. ToString ();Session ["pwd"] = user.
If you have a foresight, you will add a prefix to the table name and stored procedure name. For example, the Forum table name is BBS_xxx and the blog table name is BLOG_xxx; in this way, table sharding is easier. Speaking of this, you may think
Address reproduced in this article: http://mobile.51cto.com/ahot-409516.htmI. allow Web page width Auto-adjust: How does "adaptive Web Design" work? It's not that hard actually. First, in the header of the page code, add a row of viewport meta tags.
ArticleDirectory
When Will stringbuilder be used?
Capacity of stringbuilder
This article discusses the following:
There are two main types of memory-consuming objects in the Website: managed resources and unmanaged
I. Project Overview
1. PurposeResource files are used to solve the problem of multilingual website versions. When creating a website, you often encounter versions in multiple languages. In the early stage of ASP, many website developers use the
1. database access performance optimization 1) connection and closure of the Database Connection Pool
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange
I uploaded files to the website server using Leapftp today and found that the root directory contains an extra "aspnet_client" folder for no reason. This is so careless. security first, I checked it online.
It turned out to be automatically
The website structure is as follows:/Default. aspx/Login. aspx/Adminlogin. aspx/Member/*. aspx/Admin/*. aspx
Requirement: Requests to access pages in the/member/path are redirected to/login. aspx;The request to access the page in the/admin/path is
Summary of various ways to open a new page
[0] The most common open method
Respose. Write (" ");
[1] switch directly to the new page, and the original window is replaced;
Response. Redirect ("XXX. aspx", true)
[2] The original window is retained,
These days, in order to demonstrate our project to the customer, we found that the original degree is not the same in the development environment and deployment environment, and the original degree of operation is good in the development environment,
I haven't worked on an ASP. NET project for a long time. Suddenly, a project requires statistics on the number of visitors to the website and the number of online users.
Add the following code to the Global. asax file:
Today, a good website (NET 2.0) is released on a just-Right computer. vs2005 team suite is in English, and TFs is installed to facilitate team development. It can be run and debugged in, no error is prompted during generation, but there is always an
Http://www.codeproject.com/KB/aspnet/aspnetPerformance.aspx:
1. Http Compression
HTTP compression is usually used to compress the page content returned from the server. It compresses HTTP requests and responses, which will greatly improve the
If you have a foresight, you will add a prefix to the table name and stored procedure name. For example, the Forum table name is bbs_xxx and the blog table name is blog_xxx; in this way, table sharding is easier. Speaking of this, you may think
My opinion on how to improve the performance of applications (Internet applications or enterprise-level applications) has always been a core concern: Io processing. Because I think the current CPU processing capability is already very high, the Code
Use this post to continuously record some collected advertising effects. We hope to provide some support to our friends who need it. I also hope that my friends will post the unrecorded advertisements together. Make this post more perfect and share
Preface:
Once, in order to make it easier for the autumn garden to run and deploy locally, I wrote a "one-click Installation tool technology implementation of the QBlog blog of the autumn Garden [Download source code]".
However, this tool also has
1. Question raised
Currently, many website projects require that they support multiple languages at the same time.ProgramTo achieveCodeSmall changes, convenient website deployment, and a wide range of user groups.
2. Solution Policy
. NET
Recently I made a free text message to a small website (http://freesms.cloudapp.net/), but found someone recently cracked my verification code, use my text message service to send his advertisement every 3 seconds. Change Verification CodeProgramAnd
Environment: Win7 + VS2010 + SQLServer 2008R2
2. Add the following code to web. config:
For more information about how to configure ASP. NET applications, visit
Http://go.microsoft.com/fwlink? LinkId = 169433
-->
Name =
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.