1. display the enumerated values:
2. bind an enumeration to the drop-down box:
CopyCode The Code is as follows: getenumlist (ddlbids );
Void getenumlist (dropdownlist DDL)
{
Foreach (enumbidcardtype s in system. enum. getvalues (typeof
In Ms Ajax, one way for js to interact with C # is to call WebService, which can be asmx or WCF. Either way, the system automatically generates a proxy JS class for the developer. The implementation method is as follows:
1. Create a website and
In the iis7 development environment, everything works normally, but after being deployed to the IIS6 server, the Ajax client cannot be loaded every time the page is refreshed.
CopyCodeThe Code is as follows: protected void
1. Register a namespace
Type. registernamespace ("Wallis ");
Is to add Wallis to the window, and then the namespace can be directly used anywhere (the window is global and can be omitted during use)
2. Registration
Wallis. Animal.
Paging Method
CopyCode The Code is as follows: //
///
///
///
/// Control ID
/// data source
/// current page
/// Number of data entries per page
/// page search parameter like & A = A & B = B
///
Public static string showpage
Another solution is to filter out frequently used words during output. The advantage is that you only need to write them once and can filter out the illegal words on the entire site. The disadvantage is that the illegal words are still stored in the
Static Page statichtml.html
CopyCode The Code is as follows:
several methods for collecting dynamic page access volume
This is displayed in the layer
add page addnumber. aspx addnumber. aspx. CS Code copy Code the code is as
Stats command
Traversing the memcached cache object (C #)For performance considerations, memcached does not provide the traversal function, but we can use the following two stats commands to obtain all the cache objects.1. Stats items
Displays
First, let's take a look at the implementation of ASP. NET page refreshing:
First:
C # codePrivate void button#click (Object sender, system. eventargs E){Response. Redirect (request. url. tostring ());}
Second:C # codePrivate void
I personally like to use repeater. Because of its conciseness, this ajaxpager is targeted to repeater!
Step by step:
Code
Copy code The Code is as follows: [defaultproperty ("totalrecord "),
Toolboxdata (" ")]
Public class ajaxpager: webcontrol,
ASP. NET transaction operations are very simple,
Code As follows:
Code
Copy code The Code is as follows: using system;
Using system. Collections. Generic;
Using system. LINQ;
Using system. Web;
Using system. Web. UI;
Using system. Web. UI.
CopyCode The Code is as follows:
upload an image and generate a thumbnail
Width: 100
Height: 150
Add information: aspxboy. com
Information location: Left: 10
Right: 135
Asp.net (VBScript) uploads images
CopyCode The Code is as follows: //
/// Single-choice button Column
///
///
/// If groupname is not set, use the ID of the gridview as the groupname
/// If datafield is not set, rowindex is used as the value.
/// Allow dataformatstring formatting
Try this tool today. First, a database named testdb is created in the database, and then a new Login Name (testdb) is created, specifying testdb as the default database of testdb. Then the configuration starts.
The configuration process refers to
Method 1: Use the XML Control
Code
Copy code The Code is as follows:
XML method 1
Method 2: Use DOM technology Code copy Code the code is as follows: method 2 for XML reading
Method 3
It is mainly used for infrequently updated and modified data, but a large amount of data must be processed during the first compilation. The page output cache is the whole page cached
Easy to use
Duration: Cache Time
Varybyparam: Updates cached
Code similar to the following:
Copy codeThe Code is as follows: Uri uri = new Uri (targetUrl); // the absolute path of the file corresponding to targetUrl
System. Net. HttpWebRequest request = (HttpWebRequest) WebRequest. Create (uri );
Request.
Recently I am working on a Web project. I use a third-party control of DevExpress.
Because the control has few skills in Chinese, it is really awkward. It can only be explored and developed.
Today, I want to implement some editing boxes such 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.