Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.netÖÐTimerºÍWebServiceµÄʹÓÃ

 Ê¾ÀýÒ»
ÔÚGlobal.asax.csÎļþÖУº 
 protected void Application_Start(Object sender, EventArgs e)
      {
               System.Timers.Timer timer1 = new System.Timers.Timer();
                timer1.Interval = 50000; // 50000 ºÁÃë = 50Ãë
                timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed);
                timer1.AutoReset = true;
                timer1.Enabled = true;
                timer1.Start();
       }
void timer1_Elapsed(object source, System.Timers.ElapsedEventArgs e)
      {
               // ÔÚÕâÀï¼ÓÉ϶ÁÈ¡Êý¾Ý¿âµÄ´úÂë¾Í¿ÉÒÔʵÏÖºǫ́·þÎñ¶¨Ê±·ÃÎÊÊý¾Ý¿âµÄ¹¦ÄÜ£¬¸Ã¹¦ÄܶÔÓÚʵÏÖÎļþ½â
        //Ëø¡¢ÂÛ̳¶¨Ê±Í³¼ÆµÈºÜÓÐÓá£
       }
 
 
                                                                       ʾÀý¶þ
 
ͨ¹ýÔÚÍøÕ¾µÄGlobal.asaxµÄApplication_Start·½·¨ÖÐ
¼ÓÈ붨ʱÆ÷ ¶¨Ê±µ÷ÓÃWebService
¸ÃWebServiceµÄÒ»¸ö·½·¨ ¸ºÔðÔÚºǫ́
ÏòÊý¾Ý¿âµÄij¸ö±í¼ÓÈëÊý¾Ý
²½Ö裺
1.ͨ¹ýVS н¨Ò»¸öÍøÕ¾
2.¼ÓÈëGlobal


Ïà¹ØÎĵµ£º

ASP.NETµÄACCESSÊý¾Ý¿â²Ù×÷Àà

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ· 
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ· 
/// 
/// È¡µÃdataset 
// 
/// ²éѯÓï¾ä 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

Asp.netÒ³Ãæ´«µÝ²ÎÊýµÄ¼¸ÖÖ·½·¨¶Ô±È½²½â

µÚÒ»ÖÖ·½·¨£º
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ
send.aspx:
   protected void Button1_Click(object sender, EventArgs e)
     {
         Request.Redirect("Default2.aspx?username=honge");
     }
receive.aspx:
string user ......

ASP.net µÄ¹¤×÷Ïß³ÌÓëÇëÇó¶ÓÁÐ

µ± ASP.NET ½ÓÊÕÕë¶ÔÒ³µÄÇëÇóʱ£¬Ëü´ÓÏ̳߳ØÖÐÌáȡһ¸öÏ̲߳¢½«ÇëÇó·ÖÅ䏸¸ÃÏ̡߳£
Ò»¸öÆÕͨµÄ£¨»òͬ²½µÄ£©Ò³ÔÚ¸ÃÇëÇóÆÚ¼ä±£ÁôỊ̈߳¬´Ó¶ø·ÀÖ¹¸ÃÏß³ÌÓÃÓÚ´¦ÀíÆäËûÇëÇó¡£Èç¹ûÒ»¸öͬ²½ÇëÇó³ÉΪ I/O bound£¨ÀýÈ磬Èç¹ûËüµ÷ÓÃÒ»¸öÔ¶³Ì Web ·þÎñ»ò²éѯһ¸öÔ¶³ÌÊý¾Ý¿â£¬²¢µÈ´ýµ÷Ó÷µ»Ø£©£¬ÄÇô·ÖÅ䏸¸ÃÇëÇóµÄÏß³ÌÔÚµ÷Ó÷µ»ØÖ®Ç°´ ......

How postback works in ASP.NET

Introduction
In this article, we will take a closer look at how ASP.NET pages post back to themselves, and how to customize this feature in our web applications.
function __doPostBack(eventTarget, eventArgument)
One of the most important features of the ASP.NET environment is the ability to decla ......

[תÌû]asp.net Ajax ÖÕ¼«½â¾ö·½°¸

  ajax ÔÚĿǰ web ÁìÓòÒѹ㷺ӦÓã¬ÆäÕæÕýºËÐÄÖ»²»¹ýÊÇÒ»¸ö·â×°ºÃÁ赀 js ¿â¡£×îÎ廨°ËÃŵÄιýÓÚ asp.net µÄ¿Ø¼þ£¬ÎÒ¸öÈËÈÏΪ ajax Ö»ÊÇÒ»¸öÇáÁ¿¼¶µÄ¶«Î÷£¬¸ù±¾Ã»ÓбØÒª½«Ëüд³É·þÎñÆ÷×é¼þ£¬Èç ajax.net¡¢AjaxControlToolkit µÈ¡£ËùÒÔÎÒÒ»Ö±ÊÓÕâЩ×é¼þΪÀ¬»ø¡£¡£¡£
ÒÔÏÂ˵Ã÷ÎÒΪʲô²»ÈÏͬ ajax µÄÏà¹Ø×é¼þ£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ