Overview
Orchard is ultimately an ASP. net mvc (later referred to as MVC) application, but in the previous analysis, MVC-related content is rarely involved. MVC provides many extensions. This article focuses on Orchard's extensions. It mainly
The following methods are not available in the instant window. Please pay attention when debugging!
You can directly write it in the method and output it for a look!
Public static string getmethodinfo () {string STR = ""; // obtain the namespace
Public class hexcel {# region import table /// /// read the Excel file, content is stored in dataset /// /// file path /// select statement {": f "indicates selecting columns A to F, including columns A and F, and" A1: B2 "indicates selecting A1
I remember that when I used ASP, I often encountered multi-level linkage in the drop-down box. For example, when registering, I needed to select a province and a city. This requires second-level linkage, at that time, a common practice was to use
1. httphandler
Instance 1: generate a dynamic image to output the Client IP address, operating system type, and browser type.
" C # " Class = " Visitor " %> Using System; Using System. Web; Public Class Visitor: ihttphandler {
1. Request
The following is an example. You can use the request method to determine whether the image is browsed internally, or whether the image is directly browsed by the website or used externally.
1 " C # " Class = " Image_test " %> 2
This article is a supplement to the cookie issue that needs to be considered when upgrading from ASP. ne t 1.1 to ASP. NET 2.0.
Code This section describes how to obtain random cookie encryption and verification keys in ASP. NET 1.1 and ASP. NET 2.0
1. ckeditor, formerly FCKeditor, is a famous HTML editor that can edit HTML content online. Ckeditor and ubbeditor are used by users.
Extract) to the JS directory, "show all files", "include the ckeditor directory in the project", and reference
1. Line command processing
(1. BackgroundCode: Operation line
// If this function operation is from the HTML responseIf (E. commandname = "addage "){
// Obtain the row numberInt Index = (listviewdataitem) E. Item) dispalyindex;// Obtain the
Use of AD controls:
An ad file is an XML file. All the tag attributes in the ad file are analyzed and placed in the adproperties dictionary for Attribute editing.
Ads. xml
1 XML version = "1.0" encoding = "UTF-8" ?> 2 An
1. sqldataread and dataset Selection
Sqldataread advantages: fast data reading. If you do not need to process the returned data in large quantities, we recommend that you use sqldatareader. Its performance is much better than that of datset.
Build high performanceASP. NETSite Chapter 5-Performance Tuning Overview (later)
This article mainly describes how to locate the performance problems of the Site Based on some simple tools and Simple phenomena.
The topics in this chapter
Since we are talking about how to build high-performanceASP. NETSite application, then we will start to talk about the website. As we said, we will focus on "tuning.
During optimization, we do not need to make things complicated. From the whole to
Click the button to trigger these two events at the same time, but first click and then Execute Command
Differences:Command can distinguish different buttons by setting commandname and commandargument,You can use commandeventargs that contains
For example, there are two sitemap files in the root directory of the Website: web1.sitemap and web2.sitemap.
Open the Web. config fileAdd the following content under :
Then let sitemapdatasource select the former,
First, you need to be familiar with xval:Http://www.codeplex.com/xvalWe recommend that you download the latest source code instead of the compiled version.
Two more
I. Routing)
The routing function was originally integrated in ASP. net mvc (MVC), and was then independently formed to form system. Web. Routing 3.5.ProgramSet. ASP. NET 4 has moved the routing function to the system. Web 4 Assembly as part of
ASP. NET 2.0, 32-bitTo run the 32-bit version of ASP. NET 2.0, follow these steps:Click Start, click Run, type cmd, and click OK ".Run the following command to enable the 32-Bit mode:Cscript % systemdrive % \ Inetpub \ adminscripts \ adsutil. vbs
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \
Temporary ASP. NET files \ Root \... DLL access denied
1. Find the c: \ windows \ Temp folder.
2. Add a network service user to the temp folder and grant the read and write
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.