Recently collated Asp/vbscript code, found in the past an ASP implementation of the MVC framework, unfortunately is a semi-finished product, efficiency is also a problem, but found that some of the code I wrote, feel still slightly can be brought
1.A, Operation effect Chart
1.B, source code/app_data/sql-basic.sql
Copy Code code as follows:
Use master
Go
if exists (SELECT * from sysdatabases where name= ' db1 ')
Begin
Drop Database DB1
End
Go
Create DATABASE DB1
Go
Use
The usual chat room using the program, that is, the chat program, the basic structure of the principle will not be used to the database. What kind of technology does it take? We know that the function of the session variable in the ASP variable is
Date function
Description: Returns the current system date.
Syntax: Date
DATEADD function
Description: Returns the date when the specified time interval has been added.
Syntax: DateAdd (interval, number, date)
Interval: Must choose. A string
Today, upgrade a server to the latest IIS8.5, and then deploy the Web site, there is a relatively old ASP site found the problem, upload a slightly larger file error, pass a dozens of k file to no problem, we all know that IIS default upload file
The example in this article describes how ASP.net obtains form form values in the MVC controller. Share to everyone for your reference, specific as follows:
In the MVC controller, if we want to get directly to the value of a LABEL element in the
Common Regular matching expressions
Regular expression--verification of mobile phone number: 13[0-9]{9}
To achieve the mobile phone number 86 or +86 before: ^ (\+86) | (86))? (\d{9}$)
The phone number and mobile number are verified simultaneously: (
In some cases of grasping and filtering, the advantage of regular expression regular expression is obvious.
For example, a string that resembles the following:
Copy Code code as follows:
[09/11]fckeditor highlight code plug-in test
=============================================================
' Thank you for using the utility function program developed by the ASP001 studio
' HTTP://WWW.ASP001.NET
'=============================================================
' ASP001 Studio to
In the electronic interactive map of the amount of information is too large, fully through the client's vast number of operators to complete the work of the large, so you must realize the function of online tagging. And this kind of function relies
1, the following text file download, and will. TXT changed to remote.asp, there is a specific set of methods
Copy Code code as follows:
' Save remote pictures when adding resources
Const Ssavefileselect=true
' Remote picture save
One of my Java jobs, I changed it to ASP.net (C #).
Copy Code code as follows:
protected void Page_Load (object sender, EventArgs e)
{
Complex complex_a = new Complex (1.0, 1.0);
Complex Complex_b = new Complex (2.0, 2.0);
The following function uses the FSO object, where the file location is fso.asp. FSO Object File encoding attribute only three kinds, system default, Unicode,ascii, and no we want to utf-8, so the general Chinese system on the use of FSO object
An HTTP 500 Internal server error indicates that the IIS server cannot parse the ASP code, and if you are networked, it is 500 wrong to find the server.
IIS settings inside the IIS7 to turn on the option to enable the parent path, after that, of
Looking for a long time on the internet did not find an example, no way, want to be lazy also stolen, or their own honest to write a bar. No more nonsense, below please see the detailed method I do.
1. Infinite classification must be database
What is RSS? RSS is an easy way for sites to share content with other sites (also known as aggregate content) and is typically used for news and other sequential Web sites, such as blogs. An introduction to a project may include a full introduction
Use of RegExp objects:
Regexptest (PATRN, STRNG)
Dim regEx, Match, matches ' Set variable.
Set regEx = New RegExp ' establishes a regular expression.
Regex.pattern = Patrn ' Set mode.
Regex.ignorecase = True ' Sets whether character case is
Get full URL (protocol name + domain + site name + filename + parameter)
String fullurl = Request.Url.ToString ();
Gets the URL information requested by the client (excluding hosts and ports)
string rawurl = Request.rawurl;
Get Site name + page
Asp. NET FileUpload control does not support onchange events on the server side by default, this functionality can be implemented in a flexible way.This needs to borrow the client's onchange event, call the __doPostBack method to simulate an event
Copy Code code as follows:
Using System;
Using System.Web;
Namespace Moosoft.OA.Public
{
Cookie Help Class
public class Cookieshelper
{
#region Get Cookies
Get the value of a cookie
public static string Getcookievalue
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.