Comet:Jquery+asp.netʵÏÖhttp³¤Á¬½Ó(LongPoll)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JqueryAjaxLongPoll.aspx.cs" Inherits="JqueryAjaxLongPoll" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<script type="text/javascript" src="script/jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#Button1").bind("click",{btn:$("#Button1")},function(evdata){
$.ajax({
type:"POST",
url:"JqueryAjaxLongPoll.aspx",
dataType:"json",
timeout:10000,
data:{ajax:"1",time:"10000"},
success:function(data,textStatus){
//alert("ok!");
 
Ïà¹ØÎĵµ£º
ViewResult:Ò»°ã³ÊÏÖij¸öaspxÎļþ£¬ÓÉView·½·¨·µ»Ø¡£
RedirectToResult:ʹä¯ÀÀÆ÷ÖØ¶¨Ïò£¬ÓÉRedirect·½·¨·µ»Ø¡£
RedirectToRouteResult:Ö±½Ó½»¸øÏÂÒ»¸öAction£¬ÓÉRedirectToAction·½·¨·µ»Ø¡£ ......
ʲôÊÇÓû§¿Ø¼þ£¨User Control£©£¿
Óû§¿Ø¼þÆäʵ¾ÍÊÇÒ»ÖÖ×Ô¶¨ÒåµÄ×éºÏ¿Ø¼þ£¬Í¨³£ÓÉϵͳÌṩµÄ¿ÉÊÓ»¯¿Ø¼þ×éºÏ¶ø³É£¬
Óû§¿Ø¼þÖв»½ö¿ÉÒÔ¶¨ÒåÏÔÊ¾Ò³Ãæ£¬»¹¿ÉÒÔ±àдʼþ´¦Àí´úÂë¡£µ±¶à¸öÍøÒ³ÖаüÀ¨
Óв¿·ÖÏàͬµÄÓû§½çÃæÊ±£¬¿ÉÒÔ½«ÕâЩÄÚÈÝÏàͬµÄ²¿·ÖÌáÈ¡³öÀ´£¬×ö³ÉÓû§¿Ø¼þ¡£
HttpHandler:ÊÂʵÉÏ£¬µ±Ò»¸öHTTPÇëÇóµ½´ïHttp ......
Ë®ÏÉ»¨Êý£ºÒ»¸öÈýλÕûÊý¸÷λÊý×ÖµÄÁ¢·½ºÍµÈÓÚ¸ÃÊý±¾Éí¾Í³Æ¸ÃÊýΪˮÏÉ»¨Êý£¬Ë®ÏÉ»¨Êý¹²ÓÐ4¸ö£¬·Ö±ðΪ£º153¡¢370¡¢371¡¢407( ÀýÈ磺1^3 + 5^3 + 3^3 = 153 )¡£ÎÒдµÄ´úÂëÈçÏ£¬ÄãÓÐÆäËûµÄʵÏÖ´úÂëÒ²¿ÉÒÔ·¢±íÆÀÂÛ¡£
int i, m,n,k;
for (i = 100; i < 1000; i++)
{
//È¡µÃ°ÙλÊý
m = i / 100;
//È¡µ ......
web.config
<customErrors mode="On" defaultRedirect="ApplicationErroy.aspx" >
<error statusCode="403" redirect="403.htm"/>
<error statusCode="404" redirect="404.htm"/>
<error statusCode= ......
1£ºGridView Ìí¼ÓÊôÐÔ£¨ÊÇ·ñɾ³ý£¬Êó±ê¾¹ý±³¾°£©
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
& ......