In Web pages, we often need to refer to a large number of JavaScript and CSS files, plus many JavaScript libraries contain both the debug version and the compressed release version (such as jquery), not only trouble but also easy to cause confusion,
The recent web site revision just found that the original page without numbers, only the first page up the next page and then select the jump, are more popular before, and now more popular is the number of pages in the middle, just research and
The arrays are all starting from 0. JavaScript is arrayname[i], and VBScript is Arrayname (i)
The JavaScript string is still starting at 0, such as taking the first character, Stringname.charat (0).
var s= "ABCD";
S.indexof ("B") return 1
1, often write some systems, then generally from the login program to start, every system to write a login, good trouble.
Simply do a login verification function, for me, most of the situation can be competent:
[Code]
Function chk_regist
This example for you to share the ASP.net file upload, for your reference, the specific contents are as follows
1, the recent project development needs to implement the attachment of asynchronous upload and download.
2, Upload: File uploaded to
REM A section of code that implements database record paging through GetRows in ASP
Dim IStart, Ioffset
IStart = Request ("Start")
Ioffset = Request ("Offset")
If not IsNumeric (IStart) or Len (IStart) = 0 Then
IStart = 0
Else
IStart = CInt
Write a little bit larger the ASP's people know that the session this object is really useful, it can be used to record the user's private data variables, both safe and convenient. But do you really know how the session works? Maybe after you know
HTML file Tags
Text typesetting markers
Original Text Style
Inward Indent
Title
, Bold
,, Italic
Bottom Line
Delete Line
text flashes
Large Fonts
Small Fonts
text superscript
text subscript
Default font settings
Change font
Two common ways to generate files in ASP are to generate files using ADODB.stream and generate files using Scripting.FileSystemObject
1, Scripting.FileSystemObject Generation file method:
Copy Code code as follows:
Set fso =
A project of my own that requires multiple write operations on 65,536 files at the same time.
If you open all the files first, then write them again, and then close all the files. Then it takes about 16 minutes for the first write to complete, and 40
Operations on the database are often used. Including the connection code, SQL commands and so on, and never deliberately to remember them (I am not willing to remember this stuff), so often in the use of the time to check the books, turn over. Some
use JS to judge
Copy Code code as follows:
function Is_email (str) {
p =/^ ([\w\.-]+) @ ([a-za-z0-9-]+) (\.[ A-za-z\.] +)$/;
if (Str.search (p) = =-1) {
return false;
}else{
return true;
}
}
using PHP to Judge
Some time ago was windows2003server IIS6.0 suspended animation problem almost killed, pondering the n a night after the grinding out the way, the following things hope to have the same problem friends some help:
When you are using IIS6. If you
The data storage layer is implemented in the project Ninesky.datalibrary, and the entire project has only one class repository.
Repository in the implementation of additions and deletions to query and other methods for business logic layer calls,
Asp. NET provides a variety of data server controls for displaying table data from a database in a Web page, one of which is the GridView control. This control is almost the same as the DataGridView control we have learned before, so we are not
In large ASP projects, many pages involve page-flipping functions. If each page writes a flip-through program, this kind of work reduces the working efficiency, also is not advantageous to the project modularization, cannot make the code reuse.
Summary:
Explains the knowledge of URL rewriting. A method of two-level domain name rewriting is implemented with ASP.net. A summary of some of the questions that have been rewritten. provides several sample code.
For a long time did not write
In previous Web applications, uploading files was a hassle, and now with. NET, file uploads have become a breeze. The following example implements the multiple file upload function. You can dynamically add input forms, and the number of uploaded
Sometimes we have to operate a URL address query parameters, in order not to break the original structure of the URL, we generally can not directly in the back of the URL plus &query=value, especially in our URL has more than one parameter, this
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