node are processed as properties of the data item). By default, the TreeView control simply displays data items by calling the object's ToString () method. It shows the element name of the XML node so that you can see the node hierarchy that the TreeView binds to. It doesn't necessarily show what you need, but it provides a good starting point and you'll be more likely to customize the way XML data is displayed in the future.
<asp:XmlDataSource ID="MySourc
: Assembly name + directory level of the XML file ).
Note: Do not use the suffix when adding a suffix to an embedded XML file., such as "MySource. tr. xml ", should use a short horizontal, such as the MySource-tr.xml, because when looking for resources. it causes namespace problems.
JSON File
The JSON file can be used to store the text of a localized source. The following is an example of a JSON localized
contains child controls
CreateChildControlsWhen will 23.button/linkbutton/imagebutton/hyperlink be used?1.Button and ImageButton are used to pass data back to the server.2.Hyperlink for navigating between pages3.LinkButton is used to save data to the server or to access data on the server24. Track and DebugTracking:1. Page-level tracking: Include the following page directives at the beginning of the page Custom message:Trace.Write ("Here is the string to display");Trace.Warn ("Here is the strin
Network FileSystem (NFS): a Network file system, mainly used to access the file system on a remote host.
1. Install the nfs server
#1. Check Software Installation
[Root @ jiang ~] # Rpm-qa | grep rpcbind
[Root @ jiang ~] # Rpm-qa | grep nfs
#2. install required software
[Root @ zhu ~] # Yum-y install rpcbind nfs-utils
Rpcbind: rpc program software. Before CentOS5, the software name is portmap, and centos6 uses rpcbind.
Nfs-utils: software required for the nfs service
2. Start nfs
[Root @ zhu ~]
has its own code specification (link: https://pear.php.net/manual/en/standards.php), pear specification should belong to the earliest specification of PHP, and many other code specifications have evolved from it. Its requirements are also the most lenient.If you've ever heard of PHP code Sniffer (https://github.com/squizlabs/PHP_CodeSniffer), PHP codes Check and Beautify tool, you can see the MySource, Squiz, PHPCS specification. PHP code Sniffer is
is requested.II. Programming Method settings:It mainly uses methods in the System. Web. HttpCachePolicy class.(1). Response. Cache. SetExpires (DateTime. Now. AddSeconds (120); // you must specify the expiration time in this method. For example, the current sentence is two minutes.(2). Response. Cache. SetExpires (DateTime. Now. AddSeconds (120 ));Response. Cache. SetSlidingExpiration (true); // "adjustable expiration", mainly used in scenarios where the access volume is large but the access vo
this method. For example, the current sentence is two minutes.
(2). Response. Cache. SetExpires (DateTime. Now. AddSeconds (120 ));
Response. Cache. SetSlidingExpiration (true); // "adjustable expiration", mainly used in scenarios where the access volume is large but the access volume is balanced subsequently
Function: Set the cache expiration time In the first sentence, and enable the sliding expiration (adjustable expiration) in the second line ).
2. Data Cache:
(1). DataView
minutes after the page is requested.Ii. Programming Method settings:It mainly uses methods in the system. Web. httpcachepolicy class.(1). response. cache. setexpires (datetime. Now. addseconds (120); // you must specify the expiration time in this method. For example, the current sentence is two minutes.(2). response. cache. setexpires (datetime. Now. addseconds (120 ));Response. cache. setslidingexpiration (true); // "adjustable expiration", mainly used in scenarios where the access volume is
string to be displayed"); // It is the same as trace. Write, but the font is red.
Check whether a trail is used
Example: If (trace. isenabled) {trace. Warn ("enabled TRACE ")}
2. Application-level tracking: in the section of the web. config file
25. Set cache:
1. Output cache:
I. Page settings: Add
Note: The output content remains unchanged within two minutes after the page is requested.
Ii. Programming Method settings:
It mainly uses methods in the system. Web. httpcachepolicy class.
(1). res
, but the font is red.
Check whether a trail is used
Example: If (trace. isenabled) {trace. Warn ("enabled TRACE ")}
2. Application-level tracking: in the section of the web. config file
25. Set cache:
1. Output cache:
I. Page settings: Add
Note: The output content remains unchanged within two minutes after the page is requested.
Ii. Programming Method settings:
It mainly uses methods in the system. Web. httpcachepolicy class.
(1). response. cache. setexpires (datetime. Now. addseconds (120); /
DebugTracking:1. Page-level tracking:At the beginning of the page include the following Page directive %>Custom message:Trace.Write ("Here is the string to be displayed");Trace.Warn ("Here is the string to be displayed");Same as Trace.Write, except that the font is redCheck if traces are usedExample: if (trace.isenabled) {Trace.Warn ("Tracing Enabled")}2. Application-level tracking: In the Pageoutput= "true"/>25. Set the cache:1. Output cache:I. Page Setup: Will OutputCache duration= "" varybyp
unchanged within two minutes of requesting the page
Ii. Programming Method Setting:
The main use of the method under Class System.Web.HttpCachePolicy class
(1). Response.Cache.SetExpires (DateTime.Now.AddSeconds (120)); The expiration time must be specified in this method, such as the text//sentence of two minutes
(2). Response.Cache.SetExpires (DateTime.Now.AddSeconds (120));
Response.Cache.SetSlidingExpiration (TRUE); "Adjustable expiration", mainly for those with a large number of initial vi
(120)); The expiration time must be specified in this method, such as the text//sentence of two minutes(2). Response.Cache.SetExpires (DateTime.Now.AddSeconds (120));Response.Cache.SetSlidingExpiration (TRUE); "Adjustable expiration", mainly for those with a large number of initial visits, but subsequent access//volume balances
Function: The first sentence sets the cache expiration time and the second line opens the sliding expiration (adjustable expiration).2. Data caching:(1). DataView
the text//sentence of two minutes(2). Response.Cache.SetExpires (DateTime.Now.AddSeconds (120));Response.Cache.SetSlidingExpiration (TRUE); "Adjustable expiration", mainly for those with a large number of initial visits, but subsequent access//volume balancesFunction: The first sentence sets the cache expiration time and the second line opens the sliding expiration (adjustable expiration).2. Data caching:(1). DataView MySource; (2). assigning value t
:1. Output cache:I. Page settings: Add Note: The output content remains unchanged within two minutes after the page is requested.II. Programming Method settings:It mainly uses methods in the System. Web. HttpCachePolicy class.(1). Response. Cache. SetExpires (DateTime. Now. AddSeconds (120); // you must specify the expiration time in this method. For example, the current sentence is two minutes.(2). Response. Cache. SetExpires (DateTime. Now. AddSeconds (120 ));Response. Cache. SetSlidingExpirat
. Output cache:I. Page settings: Add
Start of the stored pageNote: The output content remains unchanged within two minutes after the page is requested.Ii. Programming Method settings:It mainly uses methods in the system. Web. httpcachepolicy class.(1). response. cache. setexpires (datetime. Now. addseconds (120); // you must specify
Expiration time, such as the local
// The sentence is two minutes.(2). response. cache. setexpires (datetime. Now. addseconds (120 ));Response. cache. setslidingexp
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.