I read an article on comparison between web form and MVC in my blog. I also wrote two sentences.
From a technical perspective, MVC should be the best choice for server-side solutions (Here we emphasize the server-side solutions to distinguish them
"ProgramIt can run normally if it is on the same machine as database sub-a, but if it moves the program to another machine sub-B and the database is connected to database A, the database statements cannot be operated ."
I. a. Do not use
After XP is installed with iis5.0 and the Asp.net website is set up, the LAN cannot be accessed because the firewall intercepts the website,
Open the firewall and add the custom port of the trusted website in the "exceptions" option.
If you
In ASP. NET, The DataGrid is paged first. There are two main methods:
1) reextract data from the database on each page and bind the data
Advantage: less data is returned each time.
Disadvantage: the number of accesses to the database is too large,
After deploying a website to a VM over the past few days, we found that all the Treeview and menu controls had problems. I thought I didn't add the aspnet_client to the wwwroot directory. I contacted the service provider to help me add it. the
How to Use magicajax
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Magicajax introduction and how to configure magicajax (. NET Framework 1.1)
In the hot days of Web2.0, Ajax became a trend. The
. NET Framework 3.5 has built-in support for JSON, which can be directly used.I. PreparationFirst, reference: system. servicemodel. Web. dll, system. runtime. serialization. dll.Then in using
using System.Runtime.Serialization;
The simplest way is not to use the default method, that isInproc (default, In-process session status): sessions are stored in IIS processes (Web server memory ). If you are using Windows 2000 Server or Windows XP, iisuses the aspnet_wp.exe process.
Determine error page error.html
The error page can avoid leakage when the program throws an exception, which may lead to security problems. It only gives users the opportunity to view the error page, and will automatically jump to the homepage in 5
Document directory
Technical Points
Work with me
Use SOCKET to send and receive messages
In ASP. NET applications, messages can be sent and received through socket. Messages can be text content, files, or other types of data. This example
The graph creation function of VS is really powerful!Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->System. Drawing. Image IMG = system. Drawing. image. fromfile ("model.jpg ");
Graphics G =
Some new data controls in ASP. NET 2.0, such as gridview, detailsview, and formview, can be added, modified, or deleted directly after they are bound to sqldatasource without coding. That is to say, these controls call the method corresponding to
In Web applications, files stored in fields are sometimes required to be displayed. These files are stored in the database as blob. The display is pushed to the client browser. The following is the sample code. The table name is attachments, And the
Keywords: Single Sign-On, billing SS applications, billing SS domains.
Objective: To implement unified permission authentication for www.domain.com, sub1.domain.com, sub2.domain.com..., that is, single sign-on. Note that each address corresponds to
Viewstate is always used by everyone. What is viewstate and how many people know it?
I don't need to say much about the statebag class.
In Asp.net 2.0, statebag is used in the following types:1 control. _ viewstate this is the viewstate used by
ASP. NET error handling methods (Collation & summary)Research on http://wrfwjn.blog.hexun.com/4172839_d.htmlSummary:To create a global handler on the page, create a handler for the page_error event. To create an error handler within the application
When developing the ISO file management system, I have encountered the need to export aspx directly to excel. Now I will share my experience with you. In fact, it is easy to use ASP. NET to output documents of the Word, Excel, txt, htm, and other
Because the Asp.net processing process is in the machine. the configuration in the config configuration file is , which means that the performance parameters used by your Asp.net application depend on machine. config.The following parameters are
Generally, a typical Asp.net control stores at least some attributes with viewstate, so that you do not need to reset the attributes after page PostBack. In this article, I will introduce how to write unit tests for controls to ensure that an
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