The following points hope to help you speed up your learning.
1. Use selectors as the sets in Asp.net.
In the Asp.net world, it is rare to find a series of controls through a query. On the contrary, we are used to finding a control through a
Example: I write keywords to the database. When many keywords are used, they are separated by |. I extract them and then perform related operations.
ArticleHow can I extract words separated by commas (|) during the search so that I can use keywords
Method 1: Use a regular expression
CopyCode The Code is as follows: // path for storing dirty Dictionary data
Private Static string file_name = "zang.txt ";
// Dirty data dictionary table, such as: dirty data 1 | dirty data 2 | dirty data 3
Public
CopyCode The Code is as follows: 'The aspshell that hides and modifies the last modification time of the object
'Principle: You can use FSO to modify the attributes of a file, for example, to read-only, hide, or system. The attributes attribute in
CopyCode The Code is as follows: class template
Private c_char, c_path, c_filename, c_content, c_pageurl, c_currentpage, c_pagestr, replacepagestrPrivate tagname
'***************************************'Set encoding'****************************
Note: I only use some things in the I/O space for the background, and paste a small cascade effect,
Get it first
Code Talking,
Copy code The Code is as follows: Demo. Show = {
Test: function (E, Y)
{
Config = demo. config;
Function onshengchange
If the encoding is not rigorous, I hope you will forgive me and give me some pertinent comments.
Integration needs to be added to the original project by Discuz! Provided by NT
DiscuzToolkit Language Pack (c #)
In addition, to facilitate integration,
Default. aspx page: first pull a ScriptManager control to the page, and then pull an UpdatePanel control. Put a Label in UpdatePanel to display the time, and put a timer control to control the update of the time. Note that both the Label and Label
Database Structure:
Classidid primary key
Type name corresponding to jobClassName
Id of the parent class corresponding to ClassName
Common Practice:
Copy codeThe Code is as follows: private void Display (string parentid, String space)
{
DataTable
1. Client-> server issues
1.1. The efficiency of short data submission in get mode is higher than that in post mode.
Reason: my feelings
1.2. When the post method is submitted, if the data contains Chinese characters, the Chinese part of the data
Add two new projects in the test environment VS2008
1: DEMO3.ASPX
Copy codeThe Code is as follows: // query string and SEND server Parameters
Function createQueryString (){
Var userName = document. getElementById ("userName"). value;
Var querystring
Although ASP. NET is a highly secure scripting language, but it is often seen in ASP.. NET website injection due to lax filtering. because ASP. NET is basically used with MMSQL database setup. If the permission is too large, it is easy to be
Related code:
Copy codeThe Code is as follows: if (Page. Request. Browser. EcmaScriptVersion. Major> 0 & Page. Request. Browser. W3CDomVersion. Major> 0) // you can check whether scripts are supported.
{
Response. Write ("Browser name and version:
Copy codeThe Code is as follows: using System;
Using System. Collections. Generic;
Using System. Text;
Namespace Common{/// /// Convert the RMB size./// Public class RMB{/// /// Convert the RMB size and amount/// /// amount /// returns the
Two classes:
(Page data validation class) PageValidate. cs is basically common.
The Code is as follows:
Copy codeThe Code is as follows: using System;
Using System. Text;
Using System. Web;
Using System. Web. UI. WebControls;
Using System. Text.
Let's take a look:
First, let's look at the design of the database table. The data table mainly includes ID, Name, and ParentID, where ID is the primary key and ParentID corresponds to the parent node of the node:
Method 1: recursively traverse the
The following describes how to use static variables:
Copy codeThe Code is as follows:
view the progress bar of server-side task processing on the client
In this way, there is no problem when one user accesses it, but it will cause confusion
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.