Build a high-performance ASP. NET site

When developing a website using ASP. NET, performance always needs to be considered and concerned. performance is not only the speed at which the program code is executed, but also related to all aspects. Take ASP. for a request from the web browser

Asp.net automatically generates pinyin name Code

Public string GetPYString (string str){String tempStr = "";Foreach (char c in str){If (int) c >=33 & (int) c {// Reserved letters and symbolsTempStr + = c. ToString ();}Else{// Accumulate the pinyin initialsTempStr + = GetPYChar (c. ToString

How to use a three-tier architecture in ASP. NET

Learning ASP. NET knows that its most classic architecture is a three-tier architecture, which is also the most widely used architecture. in the past, we all know the MVC Architecture as a three-tier architecture, which is widely used in html

Asp.net simple solution for scheduled task execution

A task is executed at a specific time point every day. For example, a report is sent by email at every day. The first thing that comes to mind here is to use the Global. asax file to implement the content of the following Global file. Copy to

ASP. NET Application Life Cycle for IIS 5.0 and 6.0

The application lifecycle has the following phases: 1. the user initiates an application source from the web server: Description: The asp.net application originated from a browser that initiates a request to the web server (usually IIS). asp.net is

Asp.net static page generation method

I have been working on some e-commerce websites and seldom write blogs. On Sunday, I am on duty at my company. If I have nothing to do, I will write about how my projects survive into static pages .. Many of the projects I have taken over are

ASP. net mvc practice series 2-simple application

Here we create a simple ASP. net mvc practice application to CRUD the News table of the News Database.I. preparations:Create a News Database News table in SQLServer, add the NewsData. dbml file to the Models folder, and drag the News table to the

ASP. net mvc Verification

1. Simple VerificationIn ASP. in Net MVC, the verification is at the Controller layer, while the error is displayed at the View layer. The Controller layer verifies the error through the ModelState attribute, and the ModelState state is passed

ASP. NET 2.0 Tutorial: Bind tag and Eval tag

In ASP. the Bind and Eval labels introduced in NET 2.0 simplify DataBinder in 1.1. eval. in most cases, you will not notice the major differences between the two new tags. However, you may find that the code generated by the VS editor on the design

ASP. NET Response. Redirect opens a new window

In general, Response. the Redirect method is switched on the server side, so unless Response. write (" ") the specified URL address cannot be opened in a new window. However, if you carefully analyze it and set the target attribute of the form

How can ASP. NET programs effectively prevent SQL injection?

Anti-SQL injection is a system project. in project development, the system should consider the problem of SQL injection. Generally, the following four points can better control SQL injection: Strictly verify all user input, including URL parameters.

Multifile upload using FileUpload in ASP. NET

Add the CS code for uploading a single file here:Protected void upload_Click (object sender, EventArgs e){If (upfile. HasFile){String fname = upfile. PostedFile. FileName;Int fi = fname. LastIndexOf ("\") + 1;String filename = fname. Substring (fi );

Asp.net implements dynamic titles

Method 1:Front-end: Background:Public string PageTitle;PageTitle = "my title ";Method 2:Front-end: Background:LtlTitle. Text = "my title ";Method 3:Front-end: Background:Ttl. Text = "my title ";Method 4:Background:Response. Write (" ");Method

Detailed analysis of ASP. NET role permission Module

Context: Generally, the system has different user roles, such as system administrator admin, Super User manager, and general user worker.Previously, a session was used to reserve a value, for example, session ["userType.Features: convenient, but

Asp.net AjaxPro quick start tutorial

AjaxPro has never been used before. Try it today!Download AjaxPro.2.dllHttp://www.codeplex.com/AjaxPro1. In our web site, add reference and AjaxPro.2.dll2. Configure web. configAdd the following nodes under the system. web node:View plaincopy to

ASP.net Summary of Dynamic Control Loading

During the tutorials at (www.bkjia.com), it is often said that dynamic controls are not used in ASP.net. I think the main reason is that using dynamic controls will cause some problems. During the project process, I will always make a small summary

ASP. net mvc 1.0 NVelocityViewEngine

NVelocity Template Engine is a good thing, but it has not been a new version for a long time. The following code is free to use. If you have time to complete a fully functional version, please send me a copy. Thank you.Using NVelocity;Using

ASP. net mvc 1.0 preparation

In addition to downloading the corresponding installation files and source code, we have to do additional things to start the analysis.1. Add System. Web. Mvc Project ReferenceChange the created MVC Project to the GAC System. Web. Mvc. dll reference

Learn ASP. net mvc (second) Practice

The previous article briefly understood the basic concepts and procedures of ASP. net mvc. The next few articles will show you how to create an application through ASP. net mvc through simple instances. The Demo is very simple and basic, and experts

ASP. NET instance code Tutorial: dynamically Switch CSS styles

Asp.net documentThe following is the instance code. Webmasters can try it on their own.: Using System; Using System. Data; Using System. Configuration; Using System. Web; Using System. Web. Security;

Total Pages: 1075 1 .... 843 844 845 846 847 .... 1075 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.