What is called Cross-domain.
A simple understanding is that different servers, different domain names between the access.
How to set the Cross-domain of the ASP.net Web program.
Add the following code to the Web.config
Using jquery's $.ajax () makes it easy to invoke the ASP.net background method.
Let's start with a simple example warm up.
1 , parameter-free method calls
C # Background code:
1
2 using System.Web.Services;
3 [WebMethod]
4 public static string
The Url.action () method is also a common method in ASP.net mvc, which has 8 overloaded methods, and the use of each overload method is shown in the following table.
Url.action overloaded List
name
Description
Sample
Recently in the project to use the latest version of FCKeditor, there are some issues worth noting, now write for your reference.
1. ASP pages use GB2312 encoding.
2. Download FCKeditor2.1.1.
3. Unzip the FCKeditor2.1.1 to the root of the project,
Recently, when deploying a asp.net application to IIS7, I have encountered some problems and now summarize the problems and deployment steps encountered in the deployment, this article only involves the basic deployment of asp.net.
One, Deployment
I recently studied how to completely solve the ASP injection vulnerabilities. I hope we can make more suggestions.Principle is to use preparestatement like java.The following example connects to a SQL Server databaseThe code is as follows:Preparesql.
=====================================================================
' Xdownpage ASP version
' Version 1.00
' Code by zykj2000
' Email:zykj_2000@163.net
' bbs:http://bbs.513soft.net/
' This program can be free to use, modify, I hope my program can
1 //Create a HttpCookie object
2 HttpCookie cookie = new HttpCookie ("RON");
3 /Set this
cookie value 4 cookies. Value = "My name is Xiao Wei";
5 //Set the life cycle of the cookie, defined here as three minutes
A preface
The log4net configuration found on the Internet is mostly for Web application projects and WinForm projects, too little or no description of Web site projects. The difference between Web application project and Web site project please
On the internet also looked for a lot of relevant information, many examples have no head, they try to finally run successfully, here oneself record:
is mainly used in IE browser methods, the GridView control has tags, in which add a CssClass
Asp. NET page printing (20041117)
A system will certainly have a report or query, then it means to use the print, and ASP.net page print how to achieve it? Through my practice, summed up as follows:1. Crystal ReportAdvantages: Powerful, flexible to
A strange problem has been encountered today;
A Web site, using the VS self-asp.net Development server startup is fine. However, you cannot access it after you start with IIS Express.
Use IE to view the site to find out what problems, using Chrome
Let's talk about basic routing rules. The basic routing rules are from special to general arrangement, that is, the most special (Non-mainstream) rules at the top, the most general (snake) rules in the end. This is because the matching routing rules
In this article we learned to use asp.net mvc and URL Routing in different versions of IIS. We learned about handling policies for IIS7.0, IIS6.0, and earlier versions of IIS.
The ASP.net MVC framework relies on URL Routing, and to take full
aspx page
Untitled page
aspx background code:
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
1. handler file Validateimagehandler.ashx code as follows
Using System;
Using System.Web;
Using System.Web.SessionState;
Using System.Drawing;
Using System.Drawing.Imaging;
Using System.Text;
/**////
Validateimagehandler Build site
A. The server sends the corresponding HTTP Response headers information via Response, and the data of the file to be downloaded to send the file to the client, the HTTP Response headers is shown in the following form in the HTML file:The HTTP-EQUIV
If none of the orders in the table matches the record. Then, if only the IF (rs.eof) then is judged to cause an error. The correct way to do this is to judge the end of the head pointer: if (RS.BOF and check.eof) then the correct code is as follows:
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.