Web page | Download
Function Replaceremoteurl (SHTML, Ssavefilepath, Sfileext) '// '//remote save Picture '///////////////////////////////////////////////////// ' role: Replace the remote file in the string with a local file and save the
Counter
Dim Fso,f,no,i ' Defining variables is definitely a good habit
Set fso = CreateObject ("Scripting.FileSystemObject") ' establishes an instance of an object
Set f = fso. OpenTextFile (Server.MapPath ("count.no"), 1, True) '
Tutorial when one day, your mood suddenly become very bad, but coincidentally, in your guest book, your net friend left a very exciting words, so you quickly regained the happy mood. But after a while you're feeling bad again, but this time you're
access|asp.net| Data | Database
The first time with others to do things, their own little experience, write down, although compared to vegetables, but still have to do some records, if there are errors, please enlighten me, thank you:Used to make
Enlarge
Class dealimgsizeDim asoPrivate Sub Class_InitializeSet Aso=createobject ("ADODB.stream")Aso. Mode=3Aso. Type=1Aso. OpenEnd SubPrivate Sub Class_TerminateSet aso=nothingEnd Sub
Private Function bin2str (Bin) Dim I, Str, Clow for I=1 to
Asp.net|erp believes that everyone has used the nested masterpage feature under ASP.net 2.0, which is powerful enough to allow users to create a template page, and then easily apply to other pages. and the stencil page can also be nested, but the
Array
It's really a headache to loop through the infinite classes.For example, we have to loop out a select, or a table, to write a lot of judgments.Is there any better way?My approach is to generate an array that can be called repeatedly, directly
Page Pagination | functions
Const MAXPERPAGE=18Dim pageIf not request ("page") = "" ThenPage=cint (Request ("page")ElsePage=1End If
Dim iI=0Rs.move (Page-1) *maxperpage
PagingDo While' The middle is a circular segment.I=i+1If I>=maxperpage then Exit
asp.net|web| Security (1) in Web.config configuration
Modify options in
The validation mode is set to form and the validation page is
Do not allow anonymous users
After add a page that does not validate to use the database to access the
Generate html| Generate HTML Function getpage (URL)
Dim retrieval
Set retrieval = CreateObject ("Microsoft.XMLHTTP")
With retrieval
. Open ' get ', url, False ', ' ', ' ', ' '
. Send
GetPage = Bytestobstr (. Responsebody)
End With
Set retrieval =
Asp.net| problem these days upgraded the original 1.1 items, found some problems, summed up here, but also remind you have not had time to upgrade or ready to upgrade the friend, the process of upgrading less detours, less waste.
1. Global.asax
Asp.net|css
Look at the old cat's article, by making the page dynamically loaded with different CSS to achieve personalized interface (such as personalized blog interface) have the following several methods
Method One:
HtmlGenericControl defines
Asp.net|css
There are many ways to change skin, the simplest is usually to switch page CSS, and CSS is usually written in the external CSS file. Then switch CSS is actually the replacement HTML link href path. I searched the internet for the next.
Asp.net| Skills | Web page
0. Introduction
With the development of the network, the B/s architecture based on the web is the mainstream of the current application, in which the business logic and database are placed in the server segment, and the
function '//filter Foul language function Chkbadwords (fstring,badwords) Dim bwords bwords = Split (Badwords, "|") for i = 0 To UBound (bwords) fSt Ring = Replace (fstring, Bwords (i), String (Len (Bwords (i)), "*"), 1,-1,1) Nextchkbadwords =
asp.net asp.net2.0 from our footsteps more and more near, I also rough look, here I put my feelings tell everyone, welcome to correct me!
First let's take a quick look at what new changes and improvements are made to 2.0 than previous versions.
1.
Asp.net | PAGE
A few days ago, use in a program respoonse. Redirect ("A. aspx? F = 9 #12 "), found in IE inside, jump after the page ignore # After the contents of, the strange thing is on the same page to their Redirect, this problem existed,
statement when we write ASP database programs, we usually use SQL statements, and when we add data and update the data, we usually use the way: INSERT into message (Incept,sender,title,content,sendtime, Flag,issend) VALUES (' "&incept (i) &", '
Aspjpeg| Transparent Technical Support:
1, AspJpeg can be transparent to the image watermark adjustment, can not adjust the text watermark,
2, aspjpeg support binary, can jpeg.openbinary read, can jpeg.sendbinary, also can jpeg.binary assign
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