Today, the website is upgraded to ASP. net4 Based on. NET framework4 (webform ). Some minor problems encountered in the middle. Record them here. In case of any brother, it will benefit the society...
First, if you use vs2010 to open the solution,
Viewstate usage:
Viewstate is a function that saves the page status. You can use a dynamic page to obtain the continuous action function without entering data again.
The difference between static variables and static variables is that if a user
Msdn official example: http://msdn.microsoft.com/zh-cn/library/bb398934%28v=VS.90%29.aspx
In general,
1. register the asyncpostbackerror event of scriptmanager, implement it on the server, and throw an exception that has been processed (based on
Note: This configuration method is only used on webpages with a wooden master page, if there is a master page .... I have not found a solution for this !!!
Recently, I saw that kindeditor works very well, so I downloaded it and prepared it for
The F5 key will cause repeated submission of forms. I believe this problem has been encountered in Asp.net.
The most effective method is the one published on msdn.
The principle is as follows:
On the Asp.net page, there is a hidden field named _
Simpleworkerrequest
From msdn, we know that we can reload simpleworkerrequest to implement more of our own behaviors. How to overload simpleworkerrequest? From the source code of Cassini request. CS, we can see many methods and implementation
1. Add the RealONE control to the page code:
Name = "RP1">
Name = "RP2" viewastext>
Name = "RP3">
2. Add the following to the background code:
Protected void page_load (Object sender, eventargs
Spread for ASP. net is a complete ASP. net spreadsheet component that supports bound or unbound modes (no dataset needed), Ajax, native Microsoft Excel import/export, in-cell editing, multiple edits on multiple rows without server round trips,
In the development process, many projects need to be implemented in multiple languages, especially the systems developed by foreign companies are generally versions in several languages. We also need to implement multi-language functions in previous
ASP. NET provides an event-driven programming model that allows developers to simplify the overall design of applications, but it also causes some inherent problems. For example, in the traditional ASP, by using the POST method, we can easily
1 public class util {
2 Private util (){}
3
4 // obtain a string safely from the querystring collection. (There is always no null, so it is called 'safe ')
5 public static string getstringsafefromquerystring (page, string key ){
6 string value =
In the previous section "data binding in the template", we discussed ASP. net contains a declarative Data Binding syntax used to associate data source fields with control attributes in a data binding template. You can also use the syntax in the
Performance is a very important issue for an application. It is also the same in Web development. I believe no one is willing to wait for 8 seconds before the computer screen to open one, this is the 8-Second Principle on the web. For the
Public class helloworldmodule: ihttpmodule
{
Public helloworldmodule ()
{
}
Public String modulename{Get {return "helloworldmodule ";}}
// In the init function, register for httpapplication// Events by adding your handlers.Public void Init
Description
On
Specify to enable custom errors. If not specifiedDefaultredirectThe user will see a general error.
Off
Disable custom errors. This allows the display of standard detailed errors.
Remoteonly
Specify to display custom errors
In the Web site, you need to execute a task every one minute and keep the scheduled execution status. You can use the following method:
1. application_start in global. asax occurs when the website is requested for the first time (IIS closes or
I am studying LINQ recently. I think it is really very simple to see it on the page, but I am worried that I will mix up my knowledge when I learned it. I don't know if everyone is the same as me when I first learned it, because some of his
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