///
/// Replace special characters in HTML
///
/// the text to be replaced.
/// the replaced text.
Public String htmlencode (string thestring)
{
Thestring = thestring. Replace (">", "> ");
Thestring = thestring. Replace ("Thestring = thestring.
Oledbconnection con = new oledbconnection ("provider = Microsoft. Jet. oledb.4.0; Data Source = data. mdb ");
Con. open ();
Oledbcommand Dc = new oledbcommand ("Select name from us where id = 2", con );
Textbox1.text = Dc. executescalar (). tostring
Ddbuildtools 1.1.0
Supesoft.com is a set of permissions developed for the ASP. NET permission management system.CodeGenerate a tool. Its main functions:1. Generate the database table structure document based on the database table structure2.
CopyCode The Code is as follows: 'Function: add another string before and after a string
'Source: http://jorkin.reallydo.com/article.asp? Id = 452
Public Function fill (byval sstring, byval SSTR)Fill = rfill (lfill (sstring, SSTR), SSTR)End
How to obtain the maximum value in the array (provided by port 71port_80)
This function is used to obtain the largest value in a group of arrays. It is very practical and typical and worthy of favorites!
CopyCodeThe Code is as follows:
Snum = "345
Recently, I suddenly needed to obtain the physical path of the file. I found it. This is good.
Asp.net (C #) in practical applications, it is often necessary to convert the virtual path to the actual path. The mappath method of the request object
'Asp generates random strings (numbers + uppercase/lowercase letters)
'I don't think I 'd like to use this exercise.
Function randkey (OBJ)
Dim char_array (80)
Dim temp
For I = 0 to 9
Char_array (I) = CSTR (I)
Next
For I = 10 to 35
You can
ProgramThe server. Execute (PATH) method is used to call the ASP program specified by path. After the called program is executed, the original program is returned and Subsequent commands are continued. This function is similar to # include.
Some common AIDS
Code
Click Back to the Code on the previous page:
Code of the pop-up warning box:
Click to open a new window
A confirmation box is displayed when you delete a record:
Close the window close the window
Clear
Random retrieve records in a record set
Code
'Moving to random record-Steven Jones 'ExtensionIf not (record set name. bof and record set name. EOF) then'Reset the cursor to the beginningIf (record set name. cursortype> 0) thenRecord set name.
Many friends have been cheated for no reason. This system is specially released to avoid being fooled again!
The usage is very simple:
Enter the domain name or website name of the other party. Both Chinese and English are supported! Click to query
1. Use isapi_rewrite for Dynamic Link rewriting of HTML static URL. Isapi_rewrite is a DLL component, and re_write is a module in IIS. This filter maps Dynamic Web URLs to static Web URLs through regular expressions. If news. asp? Id = 95 convert it
Enter the URL path of a doc, xls, or JPG file in the address bar of the browser. The file will be directly displayed in the browser. In many cases, we hope to bring up a download prompt box for users to download. What should we do? There are two
A regrettable phenomenon. Today, a colleague said that ASP programming under my network programming section did not bring any IP addresses, A lot of ASP programming materials on my site are the essence of ASP, which is extracted by hand from the
This is a Web page encoding problem. Generally, the Chinese version uses gb2312 to display Chinese characters without garbled characters. However, sometimes we use an international common UTF-8 format. If the UTF-8 format is not well understood,
'*************************************** ***********
'Function name: CreateKeyWord
'Usage: generate a keyword from a given string
'Parameter: Constr --- the original string to generate the keyword
'Return value: generated keyword
'*******************
'================================================ ==============
'Process name: SaveRemoteFile
'Usage: Save the remote file to the local device.
'Parameter: LocalFileName ------ local file name
'Parameter: RemoteFileUrl ------ Remote File URL
'======
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