Recently it is too popular collection, I do not like to collect, but the principle of collection I am very interested in research, got the online collection of commonly used functions, on its research, and actual combat, the results of success,
Verifying IP format '******************************
' Function: Checkip (Par_strip)
' parameter: str string to be detected
' Author: Arisisi
' Date: 2007/7/13
' Description: Verify the IP format, is to return 1, otherwise return 0
' Example:
'******
Copy Code code as follows:
Function MoveR (RSTR)
Dim I,spstr
Spstr = Split (Rstr, ",")
For i = 0 to Ubound (SPSTR)
If I = 0 Then
MoveR = MoveR & Spstr (i) & ","
Else
If InStr (Mover,spstr (i)) =0 and I=ubound (SPSTR) Then
If there is no understanding of where, please leave a message ohGenerate random code class: SigowayRandom.cs
Copy Code code as follows:
Using System;
Namespace RongYi.Model.Common
{
Summary description of Sigowayrandom
public
Due to browser security restrictions, Cross-domain access to a network connection is not allowed. We cannot use Ajax directly on the browser side to access resources across domains, but there is no such cross-domain security restriction on the
This article describes the universal paging function implemented by ASP.net. Share to everyone for your reference, specific as follows:
Function:
1. Display 9 pages per page, more than 9 pages, 5 pages after the + 1 page display (can be
The example in this article describes how Asp.net+ligerui implements grid to export Excel and Word. Share to everyone for your reference, specific as follows:
The following guide to Excel method, suitable for not paging the grid, and no need to
What is SQL injection?
My understanding of SQL injection is that some people can input through malicious parameters, let the background to execute this SQL, and then to get data or destroy the purpose of the database!For a simple query example,
Sometimes we need to collect some information to their own database, local disk, we often use is webclient,webrequest, etc., today, mainly say, for a URI address, collect all the image resources on this page, the following is the source code, for
The first step: for example, the user control is placed in the Mylist.ascx, and then the Controls command is:
Copy Code code as follows:
At this time already have inherits, bring ClassName is its name, if not, you must create
This is probably caused by the fact that IIS installed after the. NET Framework has caused. NET to not be registered in IIS.
I've been searching the internet for a long time. You can run aspnet_regiis/i from the. NET command-line tool (or in a
As an exercise I added "Insert Code" "Insert Run Code", you can see the situation, add other ubb.2, Code:Default.aspx.cs
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Using
Since it's a little empty at home, here's a detailed list of permissions to set up IIS under Windows XP Special Edition (if the partition where the Web site resides is not the NTFS file system, you don't have to set permissions, you can see what
' Field URL plus join.
Function Tolink (STR)
Dim RE ' Regular Expression object Dim strcontent
If IsNull (str) Then str = ""
Set RE = New RegExp ' Create regular Expression object
With RE
. Global = True ' search applies to entire string
.
Select action:
Backup
Recovery
Database name:
" >
File path:
(file path for backup or recovery)
' Backup and restore of SQL Server database!
If Request ("action") = "BackupDatabase" Then
Dim
ASP Birthday Automatic Reminder program with ASP, debugging through, the use of convenient-asp birthday automatically remind small programs with the preparation of ASP, debug, easy to Use
method One:
Originally written on a class site for the
000000000000000000000000000000000000000000000000000000000000000
Copy Code code as follows:
Function Comma (str)
If Not (IsNumeric (str)) or str = 0 Then
result = 0
ElseIf Len (Fix (str)) result = Str
Else
Pos = Instr (1,str, ".")
Rem converts strings to shaping data
function Tointeger (str,num)
Str=trim (str)
If str= "" or not IsNumeric (str) Then
Tointeger=num
Else
TOINTEGER=CLNG (str)
End If
End Function
Rem converts a string to a double-precision type of data
function
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