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
Asp.net core manages IIS on windows for detailed steps, coreiis
Summary
In a recent project, I tried to use asp.net core for development. During deployment, considering the existing hardware, it can only be deployed on windows, but not on linux
C # Use reflection to get attributes and set attribute values,
///
/// Obtain the attribute values in the class
///
///
///
///
public
string
GetModelValue(
string
FieldName,
object
obj)
{
try
{
Type Ts = obj.GetType();
MVC @ Html. Raw () usage, mvc@html.raw usage
@ Html. Raw () method outputs a string with html tags,
For example: @ Html. Raw (" output string ")
Result: The output string is a string in red)
Use Html. Raw in Razor (this method is
EF code first and efcodefirst
In the actual project, you may have designed the database and want to use EF code fist. You can add ADO in the project. select code first from the database when using the. NET object model. The model is automatically
ASP. NET has no magic-beautifying the ASP. net mvc interface and using Bundle for static resource management, mvcbundle
For an application, the importance of the interface is unambiguous, while the Web application interface is implemented using Html
SQL does not repeatedly search for data and concatenates a column of multiple rows into one row. SQL multiple rows
See the following table:
Table Name: Test
ID
RowID
Col1
Col2
1
1
A
A
2
1
B
A
C # determine whether an external executable program has been opened (open if not ),
# Region finds the relevant exe through the current Code Execution path and determines whether the startup is enabled Based on processes. Length
Private bool
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
Copy codeThe Code is as follows:// Dynamically generate three controlsProtected void button#click (object sender, EventArgs e){For (int I = 0; I {TextBox t = new TextBox ();T. ID = string. Format ("newTextBox {0}", I );Panel1.Controls. Add (t
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
The effect is as follows:First, add the following code to the HTML document: Add the following Js Code to the Js part:Add the following code to the css style file:. StatusTable{Width: 100px;Border: solid 1px #000000;Padding-bottom: 0px;Margin-bottom:
Sometimes we need to operate on the query parameters in a URL address. In order not to break the original structure of the URL, we generally cannot directly add & query = value after the URL, this is especially troublesome when there are multiple
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.
(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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service