Solution 1:
1. Enable ASP. NET State Service:
Choose Administrative Tools> services, find ASP. NET State service, click open, select start, and set the Startup Type to automatic.
2. SetProgramConfiguration file:
Set the web. when config is
Open VB6 and create ActiveX DLL
2. Add Microsoft Active Server Pages object library selection to the project reference
3. Add
Code As follows:
Copy code The Code is as follows: 'Code start
'Declaration part
Private myscriptingcontext as
The following function uses the FSO object, and the file is located in Fso. asp. There are only three file encoding attributes of the FSO object. The system defaults to Unicode and ASCII, and we do not need UTF-8. Therefore, the files generated by
In the CS file
Code
Copy code The Code is as follows: using system;
Using system. collections;
Using system. configuration;
Using system. Data;
Using system. LINQ;
Using system. Web;
Using system. Web. Security;
Using system. Web. UI;
Using
The same applies to post requests. However, sometimes the format of post data may not be very standard (maybe, not too detailed), and data cannot be obtained on the server. Recently, I encountered such a problem that a data partner simulated post.
Is to make the web applicationProgramIt always exists from the beginning to the end. Some people may say why not use the application? In fact, the cache can automatically update data within a period of time, and the application cannot do this. In
CopyCode The Code is as follows: using system;
Using system. Web;
Namespace moosoft. OA. Public
{
///
/// Cookie help class
///
Public class cookieshelper
{
# Region obtain cookie
///
/// Obtain the cookie value
///
///
///
Public static
Method 1. Use the label,
Front-end:
CopyCode The Code is as follows: 'id =" tb_search "runat =" server "target =" _ blank "> pop-up
") '> displayed
Use the label and do not refresh the Home PageMethod 2. asp: hyperlink(1) Foreground: 'target =
Starting from ASP. NET 3.5, the. NET platform supports two serialization methods:
CopyCode The Code is as follows: 1. datacontractserializer
2. javascriptserializer
The former is mainly serialized Based on the Data contract (datacontract), through
Chrome prompt:
Determine that the relevant JS is already included in the page (masterpage is used, and the two pages contain the same JS file). This eliminates the incorrect JS reference path.
The mvcclientvalidationmetadata generated on the
Index. asp page
Code
Copy code The Code is as follows:
Set cmd = conn.exe cute ("select bigclassid, bigclassname from bigclass ")
Tempid = cmd ("bigclassid ")
%>
if not cmd. EOF then do while not cmd. EOF bigclassid = cmd ("bigclassid")
Used in a previous work, pasted
Code Only the relevant code is retained, and few codes are found.
Upload page html/JS
Copy code The Code is as follows:
Process File Upload C #Copy codeThe Code is as follows: if (context.
The Repeater control does not have a built-in rendering function, which means that you must provide a layout for the Repeater control by creating a template. When this page is running, the repeater control presents one item for each record in turn
Complete example
Code As follows:
Copy code The Code is as follows:
JavaScript automatically judges and converts webpage Code
Function send_request (URL ){
VaR codedtext;
Http_request = server. Createobject ("Microsoft. XMLHTTP
Occasionally, due to Path Problems, I thought it was
Program An error occurred. The following is a technical article in my script house, which I will slightly modify for your reference.
For example, your project is webapplication1 (URL: http: //
This is mainly used to prevent users from entering a space when they get user input, which leads to verification failure. It is mostly used for usernames and passwords. In many cases, the decompress password of WinRAR copied by everyone will input
If you have a foresight, you will add a prefix to the table name and stored procedure name. For example, the Forum table name is bbs_xxx and the blog table name is blog_xxx; in this way, table sharding is easier. Speaking of this, you may think
CopyCode The Code is as follows: 'Determine whether to generate a new HTML
If application ("cache_asptohtml_date") = "" then
Application. Lock
Application ("cache_asptohtml_date") = now ()
Application. Unlock
Call asptohtml
Response. Redirect
The main purpose of this example is to use the draggable control of jquey.
Jquery, jquery-ui, and draggable are referenced in sequence. Then write the correspondingCodeFor more information about the code, seeProgram.
For draggable instructions,
1. ClientIDModeRendering ASP. NET controls automatically generate an ID. When we reference them in client scripts, it creates a lot of trouble. Although it is a simple series of named containers and IDs, however, the range of IDS generated cannot be
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