Using the SQL-Transaction class and the exception handling mechanism provided by. NET, we can handle database running problems and discover system exceptions in a reliable way. This article will explain the concepts and usage of transaction
1. Do not blindly trust user input In Web application development, the biggest mistake for developers is to trust user input unconditionally, and assume that users, even malicious users, are always restricted by browsers and interact with servers
Many articles only describe how to output a random number or character image. Of course, this is the core of the verification code, but for many ASP. NET beginners, how to use the image generated by it has become a problem (many questions in the
VB. NET operators include Arithmetic Operators, Relational operators, String concatenation operators, logical operators, and value assignment operators.
1. Arithmetic OperatorsArithmetic Operators are used for numerical calculation. There are 7
Cookie is an important global variable in ASP. NET applications. It can be used to save user logon information, user session information, and some global variables or data. To improve the security of applications, it is necessary to encrypt cookies.
1. Table hyperjoin column Transfer Parameters
CODE: Required url = "aaa. aspx? Id = '' & name = 'Binder. Eval (Container. DataItem, "data field 2") %> '/>
2. Click to change the color of the table.
CODE:if (e.Item.ItemType ==
Define ViewState on the WebForm code page (for example,. aspx. cs:
ViewState["test"] = "abc";
On the displayed page (such as. aspx), you can use:
Output
The Controller in MVC defines:
ViewData["test"] =
When a request arrives, it is routed to ISAPIRuntime. processRequest () method. this method calls HttpRuntime. processRequest method, which performs some important tasks (use Reflector to view the System. web. httpRuntime. processRequestInternal
In ASP. net mvc Beta, an overload with the IValueProvider parameter is provided in the UpdataModel method. So what is the use of this IValueProvider?
Let's take a look at a simple scenario. For example, our blog system has a Post object, which has a
How to store our news items according to RSS2.0 specifications, we first create an ASP. NET page, when a user sends a request, it will return the aggregated content of the website. More specifically, we will create an ASP. NET page named rss. aspx,
The first big problem that the author encountered when writing ASP + programs was the problem of Chinese display, after running ASP +, it is found that all the Chinese characters read from the database are changed ?????????????, Similar to this
Create a CustomColors. aspx page in the CustomFormatting folder, drag a DetailsView control from the toolbox to the page, and set the ID to ExpensiveProductsPriceInBoldItalic
Bind the data source to a new data source and configure the data source to
No one may use the method in the previous ASP. NET article to perform URL Rewrite, because the URL Rewrite component is already provided.
The principle of the ASP. NET-level URL Rewrite component is very simple. In fact, it only listens to the
The ASP. NET page framework component is a scalable universal language runtime programming model in the Web forms framework. It can be used to dynamically generate Web pages. ASP. NET page framework component is the rational evolution of ASP.. NET
In ASP. NET project development, application exception handling is mainly at the page and method layers. We will separate the descriptions:
◆ Page-level Exception Handling
In addition to writing the processing code in Global. asax, we can also write
ASP. NET performance optimization Skills 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
Someone often asks me how to "Override" the URL dynamically to publish a relatively clean URL endpoint in their ASP. NETweb application. This blog post outlines several methods that you can use to cleanly map or rewrite URLs in ASP. NET and organize
Before getting started with ASP. NET mobile development programming, we will first introduce how to use simulators to browse ASP. NET mobile WEB pages. Different mobile devices have a wide gap in support for ASP. NET mobile programs, so the display
It is often necessary to export data between the database and Execl. In the net Era, ADO. NET can use Microsoft. Jet. OleDb to access Excel. There are already many similar resources on the Internet. The most typical and simplest possibilities are as
1. What is a verification control? If you want to input data of the correct type, you must check the input value, range, or format to verify that the user input meets the requirements. 2. Where is the verification control in. NET? In the validation
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