Some instructions for. aspx files,. aspx.cs files, and. Aspx.designer.cs
. aspx file: (page) write the page code. The page design code is stored. Just put the code for each control, and the processing code is typically placed in a. cs file.
.
The web has changed quite quickly over the last 20 years. More and more logic is moving from the server side to the client. Not only do you need to write more complex JavaScript code on the client, but in recent years something strange has happened:
This article mainly introduces the SqlDataReader generated dynamic lambda expression, the need for friends can refer to the following
Previous flat using a dynamic lambda expression to convert a DataTable to an entity is much faster than using
Using System; Using System.Text.RegularExpressions; namespace Commontools {/**///////Regexlib Summary description. public class Regexlib {//Verify email address public static bool IsValidEmail (string strin) {//Return T Rue if Strin is in valid
Recently saw Beginning C # Web applications Wtith Visual Studio. Net. I feel this book is good in some detail, special notes, for the latter to provide some of the things that may be useful. Let's write some of them today and finish them correctly
upload in the site believe that everyone is not unfamiliar, but also a small technical difficulties, especially in the ASP, upload some size restrictions and upload the progress of the control, and user experience, and so on, today to share a file
The following is a general MVC Route
Config. Routes.maphttproute ( name: "Defaultapi", routetemplate: "Api/{controller}/{id}", defaults:new {id = Routeparameter.optional}, );
It is cumbersome to use conventional convention
after testing
System.Web.UI.HtmlControls
under the
HtmlForm
Class, which is the form form object that we use in traditional ASP., is not suitable for dynamically generating HTML code.
A simple HtmlForm container control is customized, requiring
Recently in the study of ASP-generated static pages, so today is a study note it!
Implementation principles and procedures:
1. Through ViewEngines.Engines.FindView find the corresponding view, if it is a partial view, then use: ViewEngines.Engines.
1) Intercept string
using the substring method ,
The method has two overloaded functions in C #: substring (parameter), substring (parameter 1, parameter 2),
Use the following:
String A = "I ' m A string";String b=a.substring (1); String
C # lambda expressions,
From C #3.0, you can use lambda expressions to delegate the implementation code. Lambda expressions are directly related to delegation (http://www.cnblogs.com/afei-24/p/6762442.html. When a parameter is of the delegate type,
Integer processing methods, such as integer rounding and decimal retention
Problem description:
The background data type is decimal a, which must be an integer when displayed on the foreground page.
My practice is Convert. ToInt32 (a). In this way,
The foundation is the top priority ~ Threadstaticquartz
Back to directory
ThreadStatic
ThreadStatic is a feature in C #. It can make your field valid in a thread, but you cannot control when the field will be recycled, that is to say, if the field
Custom Random Number Generation (not repeated within the same time), random number at the same time
Private static char [] constant = {'0', '1', '2', '3', '4', '5', '6', '7 ', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'h ', 'I', 'J', 'k', 'l',
Lambda expressions, lambda expressions
1. A Lambda expression is an anonymous function. Its essence is actually a function. Therefore, any Lambda expression can be implemented or replaced by a common function in other ways.
2. Lambda expression
Delete all files under a path and files under a path
To delete all objects under a path:
Delete the file. Insus. NET writes two methods, with the same name and heavy load.
The principle is simple, that is, all directories and subdirectories in
C # asynchronous programming,
With asynchronous programming, method calls are run in the background (usually with the help of online processes and tasks) and do not block the call thread.Asynchronous programming has three modes: asynchronous mode,
Object-Oriented Programming principles
1. Single Responsibility Principle (the principle of clear object responsibilities)
Requirement: a single object can only do one thing and must be focused. There are many reasons for too many responsibilities
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