ASP.NET µ¯³ö´°¿ÚÎÊÌâ
1.updatepanel Öе¯³öÌáʾ´°¿Ú
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.Page.GetType(), "message", "alert('°¢ÐÜ£¡');", true);
2.ÔÚд°¿ÚÖдò¿ªÁ´½Ó
Response.Write(" <script>window.open('NewPage.aspx') </script>");
²»¹ýÿµ±µ¯³öÕâ¸öÍøÒ³¹ýºó,ÔÀ´µÄÖ÷ÍøÒ³µÄÒ³Ãæ×ÖÌå×Ô¶¯¾Í±ä´ó,ÒòΪASP.NET ÖÐËæ±ãʹÓà Response.Write,»á´òÂÒ ASP.NET µÄÊä³öÁ÷˳Ðò
¸Ä½ø·½·¨£º
string js = "<script language=javascript>" + "window.open('NewPage.aspx','newwindow', 'height=600, width=800, top=100, " + "left=100, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, " + "status=no');</script>";
Page.RegisterStartupScript("js", js);
3.Ò³Ã浯³öÏûÏ¢
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('°¢ÐÜ£¡')", true);
Ïà¹ØÎĵµ£º
Ç°Ãæ½éÉܹýÁËÈçºÎʹÓÃForms·½Ê½½øÐÐÓû§Éí·ÝÑéÖ¤£¬È»¶ø£¬ÔÚ´ó¶àÍøÕ¾Öж¼»áÓÐÒ»¸ö“Í˳ö”¹¦ÄÜ£¬ÈÃÓû§¿ÉÒÔͨ³öµÇ¼¡£ÔÚasp.netÖУ¬Í˳öµÄ·½Ê½ºÜ¼òµ¥£¬Ö»ÒªÔÚÍ˳öÒ³ÃæÖмÓÉÏ´úÂë“FormsAuthentication.SignOut()”¼´¿É¡£
Äã¿ÉÒÔʹÓÃResponse.Redirect()ÔÚÍ˳öÖ® ......
ÔÚÇ°ÃæµÄ¼¸ÆªÎÄÕÂÖнéÉÜÁËasp.netµÄ´°ÌåÉí·ÝÑéÖ¤£¬ÕâÖÖÉí·ÝÑéÖ¤·½Ê½¿ÉÒÔÈÃͨ¹ýÑéÖ¤µÄÓû§·ÃÎÊÖ¸¶¨µÄĿ¼£¬¶øûÓÐͨ¹ýÑéÖ¤µÄÓû§²»ÄÜ·ÃÎʸÃĿ¼ÏµÄÍøÒ³¡£
µ«ÊÇ£¬ÓÐÒ»ÖÖÀýÍ⣬¾ÍÊÇĿ¼ÖеÄhtmlÎļþÀýÍâ¡£ÀýÈ磬ÔÚ¡¶asp.netÖеĴ°ÌåÉí·ÝÑéÖ¤£¨×î¼òµ¥Æª£©¡·ÖнéÉܵģ¬³ýÁ˵ǼÍøÒ³Ö®Íâ ......
Ò»¡¢¸ÅÊö
¿¼ÂÇHtml±¾Éí²»´ø¶¨Ê±Ë¢ÐÂÒ³ÃæµÄ¿Ø¼þ£¬ÇÒ²»¿¼ÂÇʹÓõÚÈý·½¿Ø¼þ£»Òò´Ë¿¼ÂÇʹÓÃJavascriptÖеÄsetTimeout+xmlhttpÀ´ÊµÏÖ¶¨Ê±¸üÐÂÒ³ÃæÖв¿·ÖÄÚÈÝ£¬´ËʵÏÖÔÚIE6.0¼°ÒÔÉÏ°æ±¾²âÊÔͨ¹ý£¬ÆäËûä¯ÀÀÆ÷ÔÝʱδ²âÊÔ¹ý¡£
¶þ¡¢¹¦Äܼ°Ìصã
1¡¢Javascriptͨ¹ýMicrosoftµÄMSXML¶ÔÏ󣬶¯Ì¬»ñÈ¡ºǫ́Êý¾Ý¿âÊý¾Ý£»
&n ......
µ¼ÈëEXCELÒ»°ãÓÐ3ÖÖ·½·¨
1.ͨ¹ýExcel APIlÀ´µ¼È루ȱµã£¬ÐèÒª°²×°OFFICE×é¼þ£¬½¨Á¢¶ÔÏóºó£¬²»ÈÝÒ×ÊÍ·Å£¬´óÊý¾ÝÁ¿Ê±¶ÁÈ¡ËٶȽϵͣ©
2.ͨ¹ýOLEDBÊý¾ÝÔ´·½Ê½¶ÁÈ¡
3.ͨ¹ýµÚÈý·½×é¼þÀ´µ¼È루ÍƼöʹÓÃExcelLibrary£©ÏÂÔصØÖ·£ºhttp://code.google.com/p/excellibrary/
ͬÑùµ¼³öEXCELÒ²ÓÐ3ÖÖ·½·¨£¬ºÍµ¼ÈëÀàËÆ¡£
ÍƼöʹÓõÚ3ÖÖ ......
JavaScriptµ÷ÓÃdataTable²¢»ñÈ¡ÆäÖµ(ASP.Net,VS2005)
±¾¹¦ÄÜÖ÷ÒªÓõ½http://www.cnblogs.com/Hdsome/archive/2008/06/26/1230177.htmlÕâ¸öÐֵܵĴúÂ룬ÎÒÖ÷ÒªÊÇ×öÕûÀíºÍÀ©Õ¹¡£
Ê×ÏÈÔÚhttp://www.codeplex.com/AjaxPro/Release/ProjectReleases.aspx?ReleaseId=713ÍøÖ ......