Collecting a section of ASP anti-acquisition code
' Function: Text anti-copying garbled function' Date:2006-3-6' Author: blue2004' Parameter str is the original, str1 author is yourself, Reslut produces garbled seedsFunction Readtocode
asp.net| Data | database | database connection using System;
Using System.Collections;
Using System.ComponentModel;
Using System.Data;
Using System.Drawing;
Using System.Web;
Using System.Web.SessionState;
Using System.Web.UI;
Using
function | regular | string
Regreplace (STR,REGEXSTR,REPALCESTR) is a regular replacement for Str
Such as:
Htmlstr= "123456"
Htmlstr2=regreplace (Htmlstr, " "" "
return HTMLSTR2 to 123456
Functionregreplace (STR,PATTERNSTR,REPSTR)
Network
Size=4> Select the course you want to view
Course Name
Course Teacher
' Create a database connection object
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=testsys"
Conn. Open
' Define the SQL
Asp.net| dialog box
In C #, the Code for the pop-up window is:
MessageBox ("User name or password is wrong!", "error:");
In ASP.net, this is not the way to do this, when we can write a class message (name casually), the contents are as follows:
//---
Stored Procedure | data | Database----The following statement lists the storage process in the database (pubs database)
Pubdatabase =osqlserver.databases ("pubs")
' oSQLServer is the SQL Server server object that was created earlier
For each dbsp
Create | data | Database on the Internet to see a lot of this code, but some are not available, some are too many garbage code, I simply modified a bit now share with you.
Option Explicit
Dim DatabaseName ' defines the database name
Databasename=
IP address
There is no bit operation in the VBS, so in a page using JS and VBS, and not good, if the VBS can also, but wordy some, and a bit of attention, if in the VBS split ("202.102.29.6", ","), will get 202,102, 293 number, Not get the last 6,
Menu | show
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
div
ASP
Ifrequest ("Showobj") <> "Thenresponse". Cookies ("Showobj") =request ("Showobj")Ifisnull (response.
Summary of performance Rules
Now let's review the rules:
* Avoid including adovbs.inc files and use constants in other ways.
* When a single Recordset is used, the connection string is passed to the ActiveConnection property.
* When multiple
static | crack | page
1, Withtemplet meaning is that the generated page schema will adopt a set of templates, which I introduced in a tutorial before, I hope you see this tutorial on the ASP template should be familiar with.2, ASP converted to HTML.
Scripts in VB scripts, you don't have to define variables or explicitly define their types in other scripting languages. A variable exists the first time you use it. However, this feature makes your code widely available in typing. If you
Programming
1. Do not let go of any seemingly simple small programming problem-they are often not so simple, or can lead to a lot of knowledge points;
2. It does not mean that you will;
3. Read the ASP's book, is unable to learn the language;
4.
Asp.net| Resolution | Error tips
Runtime ErrorRun-time error
Description:an Application error occurred on the server. The current custom error settings is application prevent the details of the application error from being viewed Remo Tely (for
asp.net| Control | Download the author to do a report of the site, the report is stored in Excel form in the server, you want to log on to the person or have permission to download Excel reports. However, the path to the file download cannot be
In the first few chapters of the example, there may be more or less problems to be encountered
For example: After the component compiles, but also modifies, occurs "the permission is denied, ' F:\csdn\fcom.dll '" and so on the mistake.
When
Acquisition | procedure
Recently on the Internet a number of collection procedures, more people holding these things online, many people who do not know how to look at those procedures to envy, in fact, if you understand some ASP, understand the
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.