C # small software part 2 ),
Some new functions are added this time. Let's proceed with the previous introduction.
Last blog address: http://www.cnblogs.com/Liyuting/p/8540592.html
Three new functions are added as follows:
I. online chat rooms
This
WPF draws smooth and continuous besell curves and wpf draws the besell1. Requirements
WPF does not directly plot the vertex set into a curve. It can be drawn using the besell curve function.
The BezierSegment curve class is BezierSegment, which
The sample code at the front-end is as follows. The datalist control is used to display StudentID and name in the Student table.Copy codeThe Code is as follows: 'visible = "false"> The background code is as follows:Copy codeThe Code is as follows://
1. the. net program runs faster once again
Many people explain this: the first time the. net program runs, the code will be compiled at cost, so the re-running will be faster. However, unfortunately, the IL will be translated once and will not be
1. Create two resources files on the web site as follows:
File Information in Resources. resx
File Information in Resources. en-us.resx
Default. aspx codeCopy codeThe Code is as follows: global_Resource Default. aspx. cs codeCodeCopy codeThe
After Microsoft launched. NET and popularized it on a large scale, ASP. NET gradually entered the mainstream of information system development. But at the same time, the old system developed with ASP is integrated. At this time, there is a problem:
1. traverse all TextBox in the page and set the value to String. EmptyCopy codeThe Code is as follows:For (int j = 0; j {Foreach (object o in Page. Controls [j]. Controls){If (o is TextBox){TextBox txt = (System. Web. UI. WebControls. TextBox) o;Txt.
One is a page conversion class, which is implemented through the static function Changfile (), and the conversion from dynamic pages to static pages.Copy codeThe Code is as follows:Using System;Using System. Data;Using System. Configuration;Using
Microsoft.. NET Framework software development kit (SDK) or Visual Studio. NET, the Internet Information Service (IIS) ing is created for ASP.. NET. If IIS is not installed when you run the SDK or Visual Studio installer, Or you uninstall and
Method 1: Use a regular expressionCopy codeThe Code is as follows:// Path for storing dirty Dictionary dataPrivate static string FILE_NAME = "zang.txt ";// Dirty data dictionary table, such as: dirty data 1 | dirty data 2 | dirty data 3Public static
MailMessage objMail = new MailMessage ();ObjMail. Subject = "Email Subject ";ObjMail. Body = "email Body ";String mfrom = txtFrom. Value; // read the sender address from the pageObjMail. From = new MailAddress (mfrom );String mt = txw.value; // read
1. Obtain the value of column j in row I of the data table.// Create and open a database connectionOleDbConnection conn = new OleDbConnection ();Conn. ConnectionString = strConnectionString; // strConnectionString is the database connection
The xml file format is as follows: localhost sa jiayuan Reads an attribute from a node.XmlDocument doc = new XmlDocument ();Doc. Load ("config. xml"); // you can add another path, for example, D: \ config. xml.XmlNode xnuser = doc.
Read settings in Web. configConn = new SqlConnection (ConfigurationSettings. etettings ["cnFriends. ConnectString"]); --> Several namespacesWhen DataSet is used, using system. Data. SqlClient is used.When configuring Web. config, use using system.
1. Session is one of the common states in Web sessions.
2. Session provides a way to store information in the server memory. It can store any data type, including custom objects.
3. the Seesion of each client is stored independently.
4. The Session
(1) Both readonly and const are used to mark constants.(2) Different values are assigned during initialization.The constant modified by const must be assigned a value at the same time as the declaration. For example:Copy codeThe Code is as
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.