asp.netÉú³É¾²Ì¬Ò³Ã棨¾²Ì¬Ò³ÃæÖаüÀ¨ÓÐʵʱÐÅÏ¢£©
asp.netÉú³É¾²Ì¬Ò³Ãæͨ³£»áÓÐ2Öз½Ê½£¬Ò»ÖÖÊÇα¾²Ì¬£¬Ò»ÖÖÊÇÊÂÏÈдºÃÄ£°åÈ»ºóÖ±½ÓÌæ»»ÄÚÈÝ¡£¶ÔÓÚ2ÖÖ·½Ê½µÄÓÅȱµã£¬Ôڴ˲»ÌÖÂÛ£¬ÖصãÊÇ˵ϵڶþÖÖ·½Ê½£¬ÔÚÉú³É¾²Ì¬Ò³ÃæÖÐÓÐһЩÐÅÏ¢ÐèҪʵʱ´ÓÊý¾Ý¿â¶ÁÈ¡£¨±ÈÈ磺ÔÚÐÂÎÅÒ³Ã棬ÎÒÃÇ»áÐèҪһЩÈȵãÅÅÐУ¬ÕâЩÈȵãÐÂÎÅÎÒÃǾÍÐèҪʵʱµÄ´ÓÊý¾Ý¿âÀï±ßÄõ½£©¡£
ʵÏÖ·½Ê½£ºÍ¨¹ýÍøÕ¾²éÕÒºÍѯÎÊ£¬µÃÖª¾ÍÊÇajax±È½ÏʵÓá£
1.»¹ÊÇҪдºÃÉú³É¾²Ì¬Ò³ÃæµÄÄ£°åÒ³Ã棬µ«ÊÇ£¬ÔÚÄ£°åÒ³Ãæ·ÅÖÃÈȵãÐÂÎŵĵط½£¬ÎÒÃÇ¿ÉÒÔ·ÅÒ»¸öDIV
<div id="hot">
</div>
ͬʱÎÒÃÇÐèҪдһ¶ÎJS£¬ÓÃÀ´ÊµÊ±»ñÈ¡Êý¾Ý¿âÐÅÏ¢£¨×¢£º»ñÈ¡·½Ê½Í¨¹ýÒ»¸öÆäËûASPXÒ³Ãæ»ñÈ¡£¬È»ºóÏÔʾµ½¸Õ¸Õ¶¨ÒåµÄDIVÖУ©¡£
<mce:script language="javascript"><!--
var request = false;
//ʵÀý»¯XMLHttpRequest
function createXMLHttpRequest()
{
try
{
request = new ActivexObject("Msxml2.XMLHTTP");
}
catch(e1)
{
try
{
request = new ActivexObject("Microsoft.XMLHTTP");
}
catch(e2)
{
request = false;
}
}
if(!request && typeof XMLHttpRequest != 'undefined')
{
//·ÇIEÄÚºËä¯ÀÀÆ÷ʵÀý»¯XMLHttpRequestµÄ·½·¨
request = new XMLHttpRequest();
}
}
//·¢ËÍ¿Í»§¶ËÇëÇóµÄ·½·¨
function getServerTime()
{
//µ÷ÓÃÉÏÃæµÄ·½·¨ÊµÀý»¯XMLHttpRequest
createXMLHttpRequest();
//escape()¶ÔÌØÊâ×Ö·û½øÐÐתÒå
var url = "../hot.aspx";
//alert(url);
//ͨ¹ýGETµÄ·½Ê½´ò¿ªÇëÇ󣬵ÚÈý¸ö²ÎÊýture±íʾÒì²½·¢ËÍÇëÇó£¬false±íʾͬ²½
request.open("GET",url,true);
//µ±requestµÄµÈ´ý״̬·¢Éú±ä»¯Ê±ÒªÖ´ÐеĿͻ§¶Ë·½·¨
request.onreadystatechange=update;
//ÒòΪÔÚurlÖÐÒѾ¸½´øÁ˲ÎÊý£¬ÕâÀïµÄ²ÎÊýΪnull
request.s
Ïà¹ØÎĵµ£º
ÓкܾÃÒ»¶Îʱ¼äÎÒµÄBLOGÉÏûÓгöÏÖAJAXÏà¹ØѶϢÁË£¬Ö÷Òªµ±È»ÊÇÒòΪ¾ø´ó²¿·ÖµÄÖØÐĶ¼·Åµ½ÁËSilverlightÉíÉÏ(¿ÉÔ¤ÆÚµÄδÀ´Ó¦¸ÃÒ²»áÊÇÈç´Ë)¡£
µ«ÓÉÓÚ¹¤×÷ÉϵÄÐèÒª£¬×î½ü»¹ÊÇ»ØÍ·¿´ÁËһϼ´½«ÍƳöµÄASP.NET Ajax Library...£¬Ë³±ãÕÒÁËÒ»ÏÂÍøÂçÉϵÄѶϢ£¬¿´Õâ¸ö̬ÊÆÎÒ²ÂÏëÓ¦¸Ã²»ÉÙASP.NET¿ª·¢ÈËÔ±ºöÂÔµôÁËÕâ¸öÆäʵÒѾbet ......
1.½«flex±àÒëºóµÄ³ÌÐò²åÈëµ½asp.netÒ³Ãæ
flexµÄ×îÖÕÊä³ö¾ÍÊÇÒ»ÕÅÍøÒ³+Ò»¸öflash(.swfÎļþ)
Õâô˵ÄãÃ÷°×ÁË°É£¬Æäʵ¾ÍÊÇÓÃËûÉú³ÉµÄÍøÒ³µÄ·½Ê½°ÑÄǸö.swfÎļþ²åÈëµ½ÄãµÄasp.netÒ³Ãæ¾Í¿ÉÒÔÁË¡£
¼ÙÈçÄãµÄflex3ÏîÄ¿Ãû×Ö½ÐTestApp£¬×î¼òµ¥Ö±½ÓµÄ°ì·¨¾ÍÊÇ£¬
°Ñ"bin-debug"Ŀ¼Ïµģº
TestApp.html
TestApp.swf
AC_OETags.js ......
¹ØÓÚ asp.net ·þÎñÆ÷¿Ø¼þ¼¸¸ö ID µÄ˵Ã÷[ZT]
Òý×Ô:http://lujf1978.blog.163.com/blog/static/2320126620078114112822/
¶ÔÓÚÿһ¸ö·þÎñÆ÷¿Ø¼þSystem.Web.UI.Control ¶¼¾ßÓÐ ID£¬UniqueID£¬ClientID Èý¸öÊôÐÔ£¬ÄÇôÕâ¸öÈýÕßµ½µ×ÓкӹØϵ£¬ÔÚ¿Í»§¶ËHTMLÖÐÓÖÊÇÈçºÎ¶ÔÓ¦³ÊÏÖµÄÄØ£¿
ID£º»ñÈ¡»òÉèÖ÷ÖÅä¸ø·þÎñÆ÷¿Ø¼þµÄ ......
ÎÊ£ºÎªÊ²Ã´SessionÔÚÓÐЩ»úÆ÷ÉÏż¶û»á¶ªÊ§£¿
´ð£º¿ÉÄܺͻúÆ÷µÄ»·¾³ÓйØϵ£¬±ÈÈ磺·À»ðǽ»òÕßɱ¶¾Èí¼þµÈ£¬³¢ÊԹرշÀ»ðǽ¡£
ÎÊ£ºÎªÊ²Ã´µ±µ÷ÓÃSession.Abandonʱ²¢Ã»Óм¤·¢Session_End·½·¨£¿
´ð£ºÊ×ÏÈSession_End·½·¨Ö»Ö§³ÖInProc£¨½ø³ÌÄڵģ©ÀàÐ͵ÄSession¡£Æä´ÎÒª¼¤·¢Session_End·½·¨£¬±ØÐë´æÔÚSession£¨¼´ÏµÍ³ÖÐÒÑ¾Ê¹Ó ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
/// <summary>
/// Data ......