ASP.NET The interface can be .aspx, There will be a corresponding .aspx.cs The logic of processing files ,.aspx All of the controls in are corresponding to variables , The variable name is the name of the control ID.

For the convenience of coding , In general, the newly added fields of the database table , In the last .

Date of operation :

Convert.ToDateTime(overdue_time.Text.Trim()); // String to time 
overdue_time.Text = model.overdue_time.ToString("yyyy-MM-dd HH:mm:ss"); // Time to string
//Compare Method : Return value >0,t1 > t2; Return value <0,t1 < t2; Return value =0,t1 = t2
//Add Method does not affect the value of the calling object
DateTime.Compare(_overdue_time, model.add_time.AddMonths()) >

Use ASP When instructed by , There must be no extra spaces in the label , Otherwise, it will report a mistake . for example :

<!--<%if(table.Value.Rows.Count > )%> It's wrong. -->
<%if(table.Value.Rows.Count>)%>

linkurl Instructions :

<%linkurl(" Folder ", "html file name ( No suffix )")%>
<!-- Generated html as follows ( This path is not relative to the current file , But for the server ):-->
/ Folder / file name .html

Read XML:

1、 use ASP encapsulation ConfigurationManager Read the configuration information of the website :

// for example 
ConfigurationManager.AppSettings["key"]
//XML file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="key" value="value" />
</appSettings>
</configuration>

2、 use C# Read general XML( Write it yourself ).

ASP.NET More articles on development summary

  1. The next generation Asp.net The development of specification OWIN(1)—— OWIN Background and brief introduction

    With VS2013 Release , Microsoft is in Asp.Net A lot of new features have been introduced in , For example, using the new permission verification module Identity, Use Async To improve the Web The throughput and efficiency of the server . One of the things I have to mention is OWIN and Katan ...

  2. ASP.NET Develop necessary knowledge points (1): How to make Asp.net The website runs on a custom Web Server

    One . Preface Everybody knows , Before , We Asp.net All of our websites can only be deployed in IIS On , also IIS It only exists in Windows On , such Asp.net It is difficult to develop a website across platforms . Because of Microsoft's open source technology , So Microsoft naturally ...

  3. Based on the Microsoft platform IIS/ASP.NET What are the large websites developed ?

    Let's start with , This article is not to say Microsoft How good the platform is , How cattle . Just a reminder LAMP/JAVA Comrades under the platform , Microsoft platform is not like you said , And as bad as you think ! It's just that you don't know . meanwhile , Also hope that the majority of M ...

  4. Talk about using ASP.NET What kind of architecture does the large website have ( cost )

    In the last article (http://www.cnblogs.com/ms0017/archive/2011/07/26/2117676.html), List the domestic and foreign use ASP.NET What are the major websites developed . Finally, I mentioned ...

  5. Based on the Microsoft platform IIS/ASP.NET What are the major websites developed ?

    Let's start with , This article is not to say Microsoft How good the platform is , How cattle . Just a reminder LAMP/Java Comrades under the platform , Microsoft platform is not like you said , And as bad as you think ! It's just that you don't know . meanwhile , Also hope that the majority of M ...

  6. asp.net Summary of common ways to catch exceptions in development ( Source code attached )

    The examples of this paper summarize asp.net Common ways to catch exceptions in development . Share with you for your reference , As follows : Preface : In the actual development process , For an application system , We should have our own mature exception handling framework , So when the exception happens , It can also be unified ...

  7. &lt; turn &gt; The next generation Asp.net The development of specification OWIN(1)—— OWIN Background and brief introduction

    2014-09-04 07:22 by JustRun http://www.cnblogs.com/JustRun1983/p/3955238.html With VS2013 Release , Microsoft is in Asp.Net ...

  8. ASP.NET The main character verification methods in development -JS verification 、 Regular expressions 、 Validation control 、 Background verification

    ASP.NET The main character verification methods in development -JS verification . Regular expressions . Validation control . Background verification 2012 year 03 month 19 Japan Monday Afternoon 8:53 stay ASP.NET The main verification methods in development <1> Use JS Examination ...

  9. ( turn )【ASP.NET Development 】 Get the client IP Address via C#

    [ASP.NET Development ] Get the client IP Address via C# explain : The content of this article is my comprehensive blog and MSDN Information on the Forum , And then through their own actual test , The content that belongs to one's own original is very rare to tell the truth , I wrote this to record myself ...

  10. ASP.NET Development in JavaScript There are Chinese characters when there is a garbled simple and effective solution

    In general, in use ASP.NET Development use JavaScript There will be no garbled Chinese characters , such as :alert(' Do you see me ?'); In this way, there will be no garbled code in the code of Chinese characters input directly , If it does , One is inspection Web. ...

Random recommendation

  1. POJ3252 Round Numbers( Don't repeat the full permutation )

    How many binary numbers are there in the interval 0 The number of is greater than or equal to 1 The number of . Find out mathematically 0 To n The legal number of intervals , And then use something like numbers DP The idea of Statistics . That's what I'm asking for , Determine the prefix of 0 and 1, And then there are several 0 And a number of 1 It's not repeated ...

  2. stay centos7 Lower installation mysql5.7

    wget http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpmyum localinstall -y mysql57- ...

  3. hdu3602( The anamorphic backpack )

    Topic link :http://acm.hdu.edu.cn/showproblem.php?pid=3602 The question is :N A country ,M A spaceship , There are people in each country num, If you get on board, give it to the United Nations value money , Select some countries ...

  4. Alibaba cloud CentOS 6.5 equipment 、 perform Docker Container and step method

    ssh Alicloud computing is on the ground ssh username@ip uname -a see linux Kernel version number , because Docker Recommended 3.8 Above the kernel , Setting the version number low may be unstable , Therefore, it is necessary to choose yum How to upgrade the kernel . Import ...

  5. jQuery Two ways of extension

    <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content ...

  6. Mysql Commonly used 30 Kind of SQL Query statement optimization method

    Source :http://www.antscode.com/article/12deee70111da0c4.html 1. Should try to avoid in where Used in clauses != or <> The operator , Otherwise, the engine will be abandoned ...

  7. ( original )C# Compress and decompress those things

    Make complaints : Sogou Promotion API It's a terrible report service !!! Sogou Promotion API It's a terrible report service !!! Sogou Promotion API It's a terrible report service !!! Sogou's is rubbish , The obtained compressed package cannot be decompressed in the normal way !! No special API ...

  8. do-while Statement and for sentence ( beginner )

    1.do-while The general form of the statement is : do sentence while( expression ): This cycle is associated with while The difference with cycles is that : It first executes the statements in the loop , And then we can see if this expression is true , If it is true, it continues to loop : If it is false , Then stop ...

  9. Mobile html Page sharing

    Development APP Applications are less challenging than developing mobile web pages , because APP Applications only need to adapt to different mobile phones , And mobile web pages need not only adapt to different mobile phones , We also need to adapt to different browsers of the same mobile phone . Mobile page sharing is a common function , Need a host environment , It could be some A ...

  10. JSONArray Sort [ Collection ]

    problem JSONArray Nested in JSONObject, Yes JSONArray Sort Before ordering : [{"id":1,"name":"ljw"}, ...