Because the computer is used by my wife and I only have one netbook, it is too hard to install. Sharpdevelop is a good choice, but there is a problem, Asp.netProgramRunning and debugging during development is a problem and always needs to be mounted
Everyone knows that ASP. net2.0 provides the new webresource. axd feature, which allows page and control developers to referenceProgramEmbedded Resources in the set. In this way, you do not need to release the images, JavaScript, CSS, and other
Obtain the binary data of the image in the specified path and output it on the page.
Using system. IO;
/// Specify the address of the output image
String Path = server. mappath ("~ /Images/aa.jpg ");
/// Create a file stream to read the image
Python can be used to write ASP. I have never heard of it. To be honest, I did not know it today, so I tried it myself. Download activepython, install it, test the code, and pass it!
# Demo1-output Chinese Characters
Class Demo:
Def
Remember that many editors and automatic collection systems use the function of automatically saving remote images. The general principle is to use the XMLHTTP object to retrieve images, and then write and save images with stream objects. Refer to
There are dictionary objects in ASP, such as key-value pairs in hash tables. Such key-value pairs can be used in many places. Unfortunately, dictionary has many shortcomings, when I found that I could not use it flexibly, I thought it would be
First MethodPlace conn. asp in the INC folder in the root directory.Only one conn. asp is required globally.
The database path in conn. asp must be relative to the site root path
For example
DB = "/DB/aslfqonlasnxvkzyvq. mdb"Strcon = "provider =
We are. in the development process of the net program, it is often necessary to interact with the user, for example, whether a certain operation is successful, "OK" or "cancel ", and whether to jump to a page after "OK" or "cancel" is selected. The
Using the WebClient class and webrequest class provided by the. NET Framework, we can easily obtain the source code of the given URL address. The following is a complete example of C.
View examples
Getpagehtml. aspx
Autoeventwireup = "false"
1. How to access the C # function in JavaScript?2. How to access the C # variable in JavaScript?3. How to access existing JavaScript variables in C?4. How to access JavaScript Functions in C?The answer to question 1 is as follows:Execute functions
ASP removes the HTML style function. The first 100 words on the website homepage are used to remove the style.
objregexp. pattern = " "'Match strhtml = Replace (strhtml," & nbsp; "," ") set matches = objregexp. execute (strhtml) 'traverses the
Statement: msdn standard documentation, favorite, easy to see http://msdn.microsoft.com/zh-cn/library/ee532866.aspxASP.NET 4 3 (a total of 3) evaluation of this article is helpful to evaluate this topic
. NET framework 4
The topics in this section
Now the project is handled in this way. If you guys have a better way, share it with me.
Exception Handling:
Here I write a Global Capture exception to catch some exceptions we missed.
Generally, 500 and 400 are customized.
Write in Web. config as
Document directory
Original address: http://aspnet.codeplex.com/wikipage? Title = ASP. NET % 20mvc % 204% 20 Roadmap
This article is first published in the Turing community.
A year has passed, and it is time to release the new version of
ASP. NET 2.0 and ASP. net 4.0, the website program may encounter the following error: "system. web. httpexception: path' // eurl. axd/'was not found."The error occurs when ASP. net detects that the Web site is configured to use ASP. net 4.0, local
If you have more experience in object-oriented development, skip the following two steps:
The first step is to master a. NET Object-Oriented language, C # Or VB. NET.
I strongly oppose learning ASP. net on the premise that I have never
Use ASP. NET technology to optimize local cache
In terms of ASP. NET performance optimization, local cache is used to solve the problem that a specific region needs to be updated frequently, while updates in other regions are not obvious.
During
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