Straight into the subject:
Open the Visual Studio 2010 program development Software
Click the file in the menu bar and select the new-> Web site->asp. NET empty site, where we choose the empty site, for the future DIY their own website, what is
What is the user control used to do?
User controls are often used to unify the style of Web page display.about user Controls
1, the user control has an. ascx extension.2, the user control does not have the @page instruction, but contains the
FSO to generate static HTML files when the replacement template label has been a very troublesome problem, at least I think so, but also to do a template, trouble! , I saw a way to solve the problem today.
such as a normal index.asp page, and the
A function that calculates a two time lag
'******************************
'|| Function Timediff (Sbegin, SEnd)
'|| This function calculates the difference of two times and can be used without changing the
'|| Author: Machinecat 2001/10/26
'*********
The simplest solution for multiple queries
Objective
We often encounter multiple query problems, and long SQL statements are often confused. In particular, when the client part of the query conditions, such as the ordinary method will be even more
IP Address Segmentation calculation
There is no bit operation in the VBS, so in a page with JS and VBS, and not good, if the VBS can also, but wordy some, and a little note, if in the VBS split ("202.102.29.6", "."), will get 202,102, 293 number,
Ways to prevent data from being submitted externally
The first way to screen special characters and keywords
Fqys=request.servervariables ("Query_string")
Dim Nothis (18)
Nothis (0) = "NET user"
Nothis (1) = "xp_cmdshell"
Nothis (2) =
A total of three main programs
My calling way
Authentication mode if trim (loginnum) <>trim (Session ("Loginnum")) Then
Response.Write Error ("Authentication code is wrong!") ")
Response.End
End If
Num.asp
' ### to Encrypt/decrypt include-code
Some ASP techniques and practical solutions
Random number:
The record keywords that are obtained when querying data are displayed in red:
" & searchname & "")%>
Using ASP to check whether the visitor used the agent
"" Then
Response.Write "
Click the prompt "OK" and "Cancel" prompt box
Onclick= ' {if confirm ("Are you sure you want to delete it? This operation will not be restored!")) {return true;} return false;} '
Delete. LDB file
Application.Contents.Removeall ()
%>
Convert HTML
Request from several sets of data is in order, the former to the following order is Querystring,form, and finally ServerVariables. The request object, in this order, searches for the variables in these sets, and if there is a match, the rest is
A brief introduction to Json.NETFirst introduce one for convenience in. NET in Api,json.net using Json. It makes it easy for us to read JSON objects that flow from the browser to the server and to write JSON objects in the response stream.
Json.NET
When the Web Forms control is set to runat = "server", the control is appended with a hidden property _viewstate,_viewstate the state value of all controls in ViewState. ViewState is a collection of name/value objects. When a page is requested, the
Here is a real case:
A project has a requirement that needs to be timed to invoke the WebService of a web system in another company to import the data from their systems into our system. Because it is a call to the Web interface, it cannot be
Talk about the idea of paging
Here the paging used a component AspNetPage.dll, this component can be downloaded to the Internet, I do not provide a
Add the most recent to the toolbox so we can drag and drop the same as other controls
As Figure
ASP.net developers often encounter a situation when Kafa, that is, there are too many fields in the new page, you need an assignment entity or build an SQL statement to save it when you click Save. This not only wastes energy but also consumes a lot
First, you introduce the Microsoft.Office.Interop.Word component, which appears in COM after you install Office.
The code is as follows
Using System;
Using System.Collections.Generic;
Using System.Diagnostics;
Using System.Linq;
Using
Code in the Default.aspx.cs
protected int pageIndex = 1;
protected int pageSize = ten;
protected int pagecount = m;
Protected string name = String. Empty;
protected void Page_Load (object sender, EventArgs e)
{
int. TryParse
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