'Filename must be inputIf request ("FILENAME") = "" thenResponse. Write " error: filename is empty! "ElseCall downloadfile (replace (Request ("FILENAME "),"\",""),"/",""))
Function downloadfile (strfile)'Make sure you are on the latest MDAC
ASP. NET
Path Problems in
This Is My page request link HTTP: // localhost/myweb/store/page1.aspx? Ddddd = 9 . The following is the path displayed through the corresponding method. You can find the desired method to obtain
A series written a few years ago is now released here.
1. Http compression OverviewHTTP compression is mainly used to compress the file requested by the user through a compression method called gzip (the compression ratio is usually between 30%
"How can we minimize the number of Web Server requests without affecting your use ?" This is a simple but effective way to improve the performance of web servers. There are several common methods:
1. Merge JS files and place multiple small files
In practice, it is rare to build pure composite controls (Asp. net2.0 secrets, Reading Notes-building composite controls), more is building a hybrid control. Here, the hybrid control refers to rewriting both the createchildcontrols () method of the
BrowserCookiesIt is used to associate some text to every user on the website.
Use a browserCookie
WhenWebCreateCookieWhen an additionalHTTPThe header is sent to the browser when the browser displays the page.HTTPThe header is in the following
Building a composite control, as its name implies, is to use existing controls to re-combine them into new controls.
All ASP. NET controls have the CONTROLS attribute to represent all their child controls. Building a compositecontrol control is
Unlike cookies, session status has no size limit. If there are extreme requirements, you can use session to save G data. In addition, the session can save more complex objects. For example, you can save a dataset in the session.
When a
Talking about Test
I hate the unit test to some extent, since I think unit test is a kind of duplication. we all know "Don't repeat yourself", but test definitely duplicated with production code. think about that you are compelled to change test
Source: http://www.cnblogs.com/JimmyZhang/archive/2009/02/08/1371819.html Zhang Ziyang
Original article:Http://www.asp.net/learn/mvc/tutorial-04-cs.aspx
In this tutorial, I demonstrated two methods to display a series of database records. I
Topic
Is a collection of skin. The skin describes how the control should be displayed. It can define the style attributes, pictures, colors, and so on.
If you have multiple themes, you can select themes as needed to display the site. You
Request. url. scheme // HTTP
Request. url. Authority // host + port: "10.172.5.148: 9000"
Request. applicationpath // virtual directory path: If it is the root website, the path is/. If there is a virtual path, the path is/virpath,/
Request.
ArticleDirectory
Add accountcontroller and corresponding View
Add an administrator account using ASP. Net Site Configuration Tool
Role-based authorization
Complete video of the musicstore project!
Currently, our store manager
Original article name: 6 tips for ASP. net mvc model binding
Address: http://odetocode.com/Blogs/scott/archive/2009/04/27/6-tips-for-asp-net-mvc-model-binding.aspx
The model binding in ASP. net mvc is very simple to use. Your action method
Speaking of Asp.net, I have to say that his predecessors ASP (PS: With. net, it is different from without. net. ^_^)
Asp.net differs from ASP:
1. Different suffix names
(PS: At the beginning, I started to talk nonsense. ^_^) Asp suffixes. asp
Page
Items
Ispostback
Sessionstate (true, false, readonly)
Server Control and view status
Use as few server controls as possible
If viewstate is not required, disable viewstate (the viewstate does not exist if the form does not exist)
ArticleDirectory
Let's talk about the paging bar first.
Next, sidebar
Check whether the cache is valid
In the previous article, I created a blog project. Today I plan to continue to work on this project.
If you do not
Yesterday I met a strange thing, the same method A (), in the consoleProgramAnd ASP. NET pages. The console program runs normally and cannot get the correct result under ASP. NET.
The execution process of method A () is as follows:
A ()
In asp.net, the image upload function is commonly used to generate thumbnails. There are many methods for baidu, google, and c #, but when I use them, I find that the thumbnails are not clear and the thumbnails are too large. below is my code for
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.