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

ASP.NETÖÐPage_LoadÓëPage_PreRenderʼþ¡£


Page_PreRender ·þÎñÆ÷¿Ø¼þ½«Òª³ÊÏÖ¸øÆä°üº¬µÄ Page ¿Ø¼þʱ·¢Éú¡£¼òµ¥µÄÀí½âΪpageÖеĿؼþäÖȾµ÷ÓôËʼþ
Page_Load ·þÎñÆ÷¿Ø¼þ¼ÓÔص½ Page ¿Ø¼þÖÐʱ·¢Éú¡£¼ÓÔؿؼþʱ·¢Éú¡£
ÕâÁ½¸öÖ´ÐеÄ˳ÐòÊÇLoadÏÈÖ´ÐУ¬PreRenderºóÖ´ÐС£


Ïà¹ØÎĵµ£º

asp.netÖÐʹÓÃjavascriptµÄ·½·¨¼°Çø±ð

1.ʹÓà ʹÓÃResponse.Write£¬ÕâÖÖ·½·¨»á°ÑJS´úÂëдÔÚÒ³ÃæµÄ×²¿(µÄÇ°Ãæ)£º
2. ʹÓ㺠page.ClientScript.RegisterStartupScript£¨£©£» ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄµ×²¿¡¢±íµ¥µÄ×îºó (Ç°Ãæ)£¬ÊÊÓÃÓÚÒªÔÚÒ³Ãæ¿Ø¼þ¼ÓÔØÍê³ÉºóÔËÐеÄJS´úÂë
3.ʹÓÃRegisterClientScriptBlock£¨£©£»ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄ¶¥²¿¡¢ ......

dzÎöASP.NETÉú³ÉËæ»úÃÜÂë

ASP.NETÉú³ÉËæ»úÃÜÂë
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstring ......

asp.netÏÂʵÏÖÎļþÉÏ´«µ½·þÎñÆ÷

   string filepath = FileUpload1.FileName;                                        &nb ......

asp.net¶¯Ì¬ÉèÖÃWebServiceÒýÓÃ

ÓÐʱºòÐèÒª¶¯Ì¬µÄÉèÖà WebService µÄÖ·£¬ÕâÑù·¢²¼µ½²»Í¬µÄ·þÎñÆ÷ʱ¾ÍÒªÖØÐÂÉú³É£¬Îª´ËÎÒÃÇÐèÒªÔÚweb.configÖж¯Ì¬ÅäÖÃWebServiceµÄµØÖ·£¬ÔÚÍøÉϲéÁ˺ܶà×ÊÁÏ£¬ÆäÖÐÕâÖÖ·½·¨¸Ð¾õºÜºÃÓÃÒ²ºÜºÃʵÏÖ£¬Ô­ÎÄVB.NETʵÏÖ¡£±¾ÈËÒѸÄΪC#°æ
¡¡¡¡Ê×ÏÈÊÖ¶¯µÄÌí¼ÓÒ»¸öWebÒýÓã¨Õâ¸ö¾Í²»ÓÃ˵ÁË°É£©
¡¡¡¡È»ºóÐ޸ı¾µØµÄ´úÀíÀࣨÌí¼ÓÒ»¸öÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ