I found a lot on the Internet in response to this problem, finding the answer is rather messy. In fact, the Page object in ASP.net has a property that lets the page submit or update the data, and then return to the original location of the page,
Keep track of some collected advertising effects with this post. Want to give some support to friends who need it. I also hope that my friends have not recorded the form of advertising also give a reply. Make this paste more perfect, also let more
Post the code for the control page.
Piclist.ascx
Copy Code code as follows:
Here is the code for the background of the control and a picture class:
Copy Code code as follows:
Copy Code code as follows:
"
Added to the asp.net2.0 is the ability to encrypt part of the data in Web.config, which can be encrypted using RsaProtectedConfigurationProvider and
Pure IP data contains 381,085, you can download the query software to extract the data into a text format, and its code to UTF8, otherwise in the program read Chinese will garbled!
The following screenshot of the program is performed to analyze IP
String Fox;
Fox. ToLower () into lowercase letters
Fox. ToUpper () into uppercase letters
Fox. Trim () Remove space before and after
Fox. Trim (TrimChars) Remove other characters
Fox. TrimStart () Remove before space
Fox. TrimEnd () Delete space
Adding "path= expiration" to the JS method solves this problem.
For example://write cookies
Copy Code code as follows:
function Setcookie (name,value)
{
Document.cookie = Name "=" Escape (value) ";p ath=/"; Set the cookie to turn off
The ASPX vb.net gets the real IP function as follows:
Copy Code code as follows:
Complete test page:
Copy Code code as follows:
untitled page
Dim client_ip as String = Get_cli_ip ()
The so-called postback mechanism, in fact, is to send themselves to their own (this page) just. Below we create a new Web site, open the default added Default.aspx page, the form part of the code is as follows:
Copy Code code as follows:
The Watermark function code is shown below
Copy Code code as follows:
Image modification class, mainly used to protect the copyright of the picture, the copyright belongs to the original author all
public class Picmark
{
#region "
It was later found that if the deleted directory does not belong to the virtual directory where the current project is located, the session is available, but the session is not available; the prompt in the debug trace: Session.get_item (). returns
The content of this work is to be the following data analysis. NET can be used, the data returned except header, the other is variable, which means that the structure is not fixed. is completely selected by the user, so the build DataTable is
Copy Code code 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 System.Web.UI.HtmlControls;
Copy Code code as follows:
Autocomplete.asmx
Copy Code code as follows:
AutoComplete.cs
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using
Through the software a day or two to complete the thousands of product data entry, can be seen that a lot of work is not blindly to do, as a programmer, is to make a lot of those who often do repetitive, tedious work of people liberated. The
The example of this article tells the PHP imitate ASP Application Object online Statistics realization method. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
/*
Usage:
The code for the entire program is as follows:
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Text;
Using System.Web;
Using System.Web.UI;
Pop-up JavaScript small window
Window
The effect chart is as follows:
The source code is as follows:
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Collections;
Using System.Web;
Using System.Web.Security;
Using
A simple error-handling page can be set by web.config.
Copy Code code as follows:
If you want to programmatically present the cause of the error, you can do it by page_error the event.
Another way can be achieved by
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