Function code used to obtain the address and parameters of the current page in ASP

CopyCode The Code is as follows: function getcurrenturl () On Error resume next Dim strtemp If lcase (request. servervariables ("HTTPS") = "off" then Strtemp = "http ://" Else Strtemp = "https ://" End if Strtemp = strtemp & request. servervariables

Solution: Asp.net SharePoint cannot connect to publish custom string handler, and cannot handle output Cache

Problem description: Unable to connect to publish custom string processing ProgramCannot process output cache. The IIS instance id is "1772638466 ", The URL is "http://xxxx.xxx.xxx/englishworld/default.aspx.pdf ". For more information, see Help

Application of Asp.net Regular Expression

1. Balanced group/recursive match (? 'Group') Name the content corresponding to the group and press the stack count;(? '-Group') returns the corresponding content named 'group' to the stack count.(?!) Assertion with Zero Width and negative direction,

Differences between Asp.net datalist and repeater

Performance Repeater is better than datalist. If it is not a large amount of data, this difference cannot be reflected. Ease of use The data binding between repeater and datalist is simple. datasource =... databind () is OK. However, datalist is

The default encoding format of web files generated by ASP + FSO and the method of converting to UTF-8 Encoding

The specific features are as follows: 1. Use a template to perform normal operations in Russian. 2. The static Russian information generated by the background database is displayed normally in the background and garbled on the foreground. 3. English

Asp xml operation code

CopyCode The Code is as follows: Class xmlclass Private objxml Private xmldoc Private xmlpath '// ============================================== ====================================== ' Sub class_initialize Set objxml = server. Createobject ("msxml2.

Asp.net data access layer Stored Procedure paging statement

Therefore, it is best to use the Stored Procedure for paging at the data access layer. the following uses the employee table in the pubs database as an example to store data paging. You can refer to it to create your own stored procedure based on

ASP highlight case-insensitive keywords

For example, for text abcabcabcabcabcabcabca, the keyword BC, there are 6 matching items in case of case insensitive. Abcabcabcabcabcabcabca is displayed on the webpage. Many people think of the replace function. Prototype: Replace (string, find,

Use JS scripts to control nodecheck implementation code of Treeview under Asp.net

Options for adding checkbox Association: 1. Select any node in the Treeview 2. When the value of the checkbox attribute of a node changes: the value of the checkbox attribute of the child node follows the change, and the value of the parent node

Function Code sorting for Asp.net File Download

CopyCode The Code is as follows: public void filedownloaddel (string fullfilename) { System. Io. Stream istream = NULL; // Buffer to read 10 K bytes in Chunk: Byte [] buffer = new byte [10000]; // Length of the file: Int length; // Total Bytes to

Asp.net obtains the weeks of a certain period of time and lists them in a table.

Code As follows: Copy code The Code is as follows: String start = request. Form. Get ("date2"). tostring (); // get the start date. This control is an HTML control. String end = request. Form. Get ("date3"). tostring (); // obtain the end date.

Static paging implementation code of Asp.net + Ajax text files

The Service side is a paging class of text files. It is mainly processed in the stream. Of course, I have used the keyword on the Internet for paging. I personally think that not all the time can meet the requirements. If I write this on myself, I

Asp.net multi-File Upload, compatible with IE6/7/8, provides complete code download

The final result is as follows: The core code is as follows: In aspx Code : Copy code The Code is as follows: Javascript is called to add or delete files. The Code is as follows: Copy code The Code is as follows: The

ASP. NET Website optimization series-database optimization table sharding (Vertical Split, horizontal partition)

1. Vertical table sharding Vertical table sharding refers to splitting a table with 20 columns into two tables, one table with 10 columns and one table with 11 columns. This reduces the capacity of a single table, it can improve the query

Import pure IP data into the database code in asp.net

There are 381085 pieces of pure IP data. You can decompress the data into text format by downloading the query software and change the encoding to UTF8. Otherwise, Chinese characters will be garbled in the program! The following code analyzes IP

Convert HTML or txt files to the vbs code output by ASP

Usage: manually modify the name of the HTML file and the name of the desired ASP file. Then save the following code as 1.vbs, and double-click it in the same directory as 1.html. Copy codeThe Code is as follows: html = "1.html" Asp = "1.asp" Set

Common processing functions for files and folders in asp (file suffixes, file creation, etc)

Copy codeThe Code is as follows: '============================================== 'Get the file suffix '============================================== Function Get_Filetxt (ByVal t0) Dim t1 IF Len (t0) T1 = Split (t0 ,".") Get_Filetxt = Lcase (t1

The next account in asp.net does not allow multiple users to log on online at the same time.

Method 1: Copy codeThe Code is as follows: string sKey = username. Text. ToString (). Trim (); // obtain the value of the given Key in the Cache. String sUser = Convert. ToString (Cache [sKey]); // check for existence If (sUser = null | sUser =

Code for transmitting and receiving DataTable using Jquery Ajax in Asp.net

The server then reverse constructs the GridView into a able, adds a row to the DataTable, binds it to the GridView, and sends it back to the client... Can it be simpler? When using Ajax data to request data, the data is usually in a simple format,

Use the AspNetPager paging Control for Repeater in asp.net

I. AspNetPager Page ControlPaging is one of the most commonly used functions in Web applications. NET, although it comes with a paging DataGrid (asp.net 1.1) and GridView (asp.net 2.0) controls, its paging function is not satisfactory, for example,

Total Pages: 1800 1 .... 590 591 592 593 594 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.