In Ms Ajax, one way for js to interact with C # is to call WebService, which can be asmx or WCF. Either way, the system automatically generates a proxy JS class for the developer. The implementation method is as follows:
1. Create a website and
Referring to some information on the Internet recently, the client has initially reached the expected goal (the client has not found any good methods for obtaining the upload progress, but has not yet implemented it ), IFRAME is used to implement
1. Add Silverlight-enabled WCF Service to the server
CopyCodeThe Code is as follows: [servicecontract (namespace = "")]
[Aspnetcompatibilityrequirements (requirementsmode = aspnetcompatibilityrequirementsmode. Allowed)]
Public class service1
{
[
Getremoteaddr (): obtains the IP address of the client.
Getremotehost (): obtains the name of the client computer. If the name fails, the IP address of the client computer is returned.
Inetaddress IA = inetaddress. getlocalhost ();
String IAD =
Two days earlier, I saw a very interesting picture on the Internet. Put the commonly used ASP syntax on a piece of paper around A4, print it out, and put it next to the computer. Once you cannot remember some statements, you can just give a look.
One is a page conversion class, which is implemented through the static function changfile (), and the conversion from dynamic pages to static pages.
CopyCode The Code is as follows: using system;
Using system. Data;
Using system.
Regexp is used to create a regular expression.
For example:
Set RegEx = new Regexp
RegEx. pattern is used to set the regular expression mode,For example:RegEx. pattern = "/d +"
RegEx. ignorecase = true' specifies whether the value is case
Client:
CopyCode The Code is as follows:
Username:
Server:
log on
Server: Copy code The Code is as follows: using system;Using system. Collections. Generic;Using system. LINQ;Using system. Web;Using system. Web. UI;Using
Paging Method
CopyCode The Code is as follows: //
///
///
///
/// Control ID
/// data source
/// current page
/// Number of data entries per page
/// page search parameter like & A = A & B = B
///
Public static string showpage
Another solution is to filter out frequently used words during output. The advantage is that you only need to write them once and can filter out the illegal words on the entire site. The disadvantage is that the illegal words are still stored in the
First, httphandle cannot implement urlrewrite;
The second server. transfer is a standard redirection, and it is not urlrewrite at all.
In fact, you do not need to implement httphandle or httpmodule on your own to implement urlrewrite. Use several
CopyCode The Code is as follows: /*************************************** ***********
* Copyright: mr_sheng
* File name: encrypthelper. CS
* File description:
* Type description: encrypthelper encryption help class
* Authorization statement:
* Book
Step 1: Search the page
CopyCode The Code is as follows:
No title page
Search title
Step 2: Add a page to return the search results. This page does not need to be displayed on the client, so you do not need to create
It is mainly used for infrequently updated and modified data, but a large amount of data must be processed during the first compilation. The page output cache is the whole page cached
Easy to use
Duration: Cache Time
Varybyparam: Updates cached
CopyCode The Code is as follows: // The thumbnail generation function
// Sequence parameters: source image file stream, thumbnail storage address, template width, and template height
// Note: the thumbnail size is controlled in the template
1) Front-end
CopyCode The Code is as follows:
2) Background Copy code The Code is as follows: using system;Using system. Collections. Generic;Using system. LINQ;Using system. Web;Using system. Web. UI;Using system. Web.
The code of the widget page.
Piclist. ascx
CopyCode The Code is as follows:
The following is the control background and an image code: Copy code The Code is as follows: public partial class webparts_piclist: system. Web. UI.
The data source is XML, so it can be expanded.
Let's not talk about it much. directly add code (for some reason, modify or streamline some data ).
XML code:
Copy codeThe Code is as follows:
Program code:Copy codeThe
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