Code that maintains the scroll bar status on the page in Asp.net

I found a lot of questions on the Internet and found that the answers were messy. In fact, in Asp.net, the page object has a property that enables the page to submit or update data, and then return to the original page location, including the scroll

How to use asp json files

In addition, it is necessary to analyze a node and locate the Node path at a level. The biggest benefit of JSON is that you can easily call all the members of an object by declaring the data string as an object. It is also convenient to use

How to Set Up ASP detailed error message

I often encounter a 500 Error prompt when my website cannot be opened, which makes people unable to cope with the problem. How can I view the detailed error prompt and find the error? Next, we take Windows XP as an example. 1. Open IE and select

Common Asp.net string processing methods

String fox; Fox. tolower () to lowercase letters Fox. toupper () converts to uppercase letters Fox. Trim () removes leading and trailing Spaces Fox. Trim (trimchars) delete other characters Fox. trimstart (): space before deletion Spaces after Fox.

Method Analysis for generating unique random codes in Asp.net

1. Write it by yourselfCodeGenerate a random combination of numbers and letters Query whether the random code already exists in the database for each generated random code. If the random code already exists, re-generate it until it is not

Asp.net: a solution for saving and modifying the control values without the runat = server Control

Js: Copy codeThe Code is as follows: function Save () // Save a value that is not a server control. { Var 1 = document. getElementById ('1box'). value; Var 2 = document. getElementById ('2box'). value; Var TxtValue = 1 + "■" + 2; Document.

Asp.net references class libraries in the same project to avoid failing to reach the real definition class when goToDefinition

Create a solution: Api Add class library APi. Data APi. Data creates an Entity Copy codeThe Code is as follows: public class Entity { Private int id; Public int Id { Get {return id ;} Set {id = value ;} } Private string name; Public string

Regular codes of mobile phone numbers, qq numbers, and URLs extracted by asp

Common Regular Expression Regular Expression -- verify mobile phone number: 13 [0-9] {9}If the mobile phone number is 86 or + 86 before it is implemented: ^ (\ + 86) | (86 ))? (13) \ d {9} $Verify the phone number and phone number at the same time:

Introduction to extensions in ASP. NET

1. Global. asax Files are the centers of ASP. NET applications. It provides numerous events to process different application-level tasks, such as user authentication, application startup, and user session processing. You should be familiar with this

JQuery implements Repeater refreshing batch deletion (with the background asp.net source code)

Front-end page Copy codeThe Code is as follows: No title page Student ID Student name BackgroundCopy codeThe Code is as follows: protected void Page_Load (object sender, EventArgs e){StudentBll _ bll = new

Asp json source code sharing

Copy codeThe Code is as follows: '================================================ ================================== 'File name:/Cls_Json.asp 'File function: System JSON files 'File Version: vbs json (JavaScript Object Notation) Version

Asp.net generate static page notes

1. Use serever. Excute Copy codeThe Code is as follows: StreamWriter sw = new StreamWriter (Server. MapPath ("html/Login.html"), false ); Server. Execute ("ShowColumn. aspx? Id = 1 & page = 2 ", sw ); Sw. Close (); 2. Replace characters Url

Function Code for asp.net to dynamically obtain the Excel table name

Copy codeThe Code is as follows: public string GetExcelFirstTableName (string excelFileName) { String tableName = null; If (File. Exists (excelFileName )) { Using (OleDbConnection conn = new OleDbConnection ("Provider = Microsoft. Jet." + "OLEDB.4.0;

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

Detailed asp output line feed original

Test code: Output simple ul li1. asp Copy codeThe Code is as follows: Response. write "" Response. write " script home " Response. write " www.jb51.net " Response. write "" %> The result is: Right-click the source file and you will seeCopy codeThe

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

URLEncode decoding function of ASP URLDecode

The following code is extracted from the kesion system. It is really good and supports the utf8 format. Copy codeThe Code is as follows: '================================================ ========== 'Function name: URLDecode 'Usage: URL Decoding '====

Implementation Code disabled after clicking the button under asp.net

1. Enable the button to be disabled using a script after it is clicked: Copy codeThe Code is as follows: However, it is a pity that this method does not work: the page will not be sent back. Therefore, we have to look for other

Asp.net verification prompt beautification effect code (package download)

Some time ago, I saw a high-hand handwriting Effect of pure css + js in the garden. I combined it with the asp.net verification control, use this highly handwritten effect as a prompt for asp.net's difficult controls. For example Compared with

Asp.net Page Status Management cookie and server status management Session

Cookie: a small amount of data stored in the Client File System text file or client browser Dialog Memory. When a user requests a webpage, the application first checks whether the user has logged on to the webpage, we can read the Cookie to obtain

Total Pages: 1800 1 .... 931 932 933 934 935 .... 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.