Environment: Microsoft. NET Framework SDK V1.1
OS: Windows Server 2003 Chinese Version
ASP. NET generate static html pages
The FileSystemObject object used to generate static pages implemented in ASP!
System. Io is involved in. net.
Below is
Problem cause
Recently, I have studied a Web architecture solution suitable for team development. This architecture is suitable for division of labor, collaboration, and scalability. It is suitable for different database needs. Therefore, I have
ASP. NETData Control
Gridview
GridviewControls display data using rows and columns
Datalist
DatalistControls display all the metrics in a column
Detailsview
If the data has a parent-child
ASP. NET and SQL Server are the best, slightly largerProgramGenerally, the first consideration is SQL Server, but access is used only when economic considerations exist. With SQL Server, stored procedures are generally used to improve database
For a project, you cannot set the start page to press F5 for debugging,
The reason is: the relationship between various webpages is too strong, and there are a lot of items to be verified. It is difficult to perform debugging (in fact, it cannot be
XMLHTTP is used to create thieves. Many people have already discussed and discussed the specific details behind the times. However, in the process of making ASP thieves, many people find that ASP thieves are not as powerful as PHP thieves. Indeed,
1. Disable sessionIf you cannot use session tracing, disable it. You can set the following in each Asp.net page:
Enablesessionstate = "false" %>
Of course, you can applyProgramDesign in configuration settings modeThe value is off.
2. output
Some JavaScript scripts are often used during Asp.net development, such:
Private void button#click (Object sender, system. eventargs E)
{
Response. Write (" ");
}
These scripts are often written repeatedly. If we can make a corresponding
Function syntax example
Now now () Get the current date and time of the system dim myvar = now
''Myvar contains the current date and time.
Date () gets the current system date dim mydate = Date
''Mydate contains the current system date.
Time () gets
For a project, you cannot set the start page to press F5 for debugging,
The reason is: the relationship between various webpages is too strong, and there are a lot of items to be verified. It is difficult to perform debugging (in fact, it cannot be
What is Web user control?
If you remember Microsoft's previous development attempts, you must be familiar with ActiveX controls or ASP inclusion files. These controls and reference files can be used to separate and reuse functions. ASP. NET web user
The use of the first three controls is the same as that of winform. The image control can be imagined as a picturebox control. Next, let's review the properties of the control and learn new properties that comply with web features.
Checkbox
Loading data with a scroll bar is a popular paging method.
Operation Method: load more data based on the current position of the scroll bar.
There are two main forms.
1: load data while scrolling. Calculate the height of the container at the
Detailed introduction on ASP.net 2.0 feature: profile, from how to access it in code both in anonymous and authenticated condition and SQL provider for storage, also cover the report part for managibility.Here is the URL:
In addition to adding controlid to the triggers of updatepanel, The updatepanel refresh function also provides the method Update () function used in the previous article. I learned another method in this blog, we use _ dopostback () (two underscores)
Role data access interface (iroledao. CS)
Using
System;
Using
Guushuuse. salaryprj. Security. domainmodel;
Using
System. collections;
Namespace
Guushuuse. salaryprj. Security. Dao
{ /**/ /// ///Role data access interface///
[Note] onfone's explanation of return false: Feedback # Re: Multi-page redirection to the same page and then return the four clever hands _ AX2006-08-29 | lonfone return false after the server button to execute the client script, do not form. submit
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