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

asp.netºǫ́Ïòǰ̨ע²ájsº¯ÊýºÍÊý×é

1. ×¢²ájsº¯Êý
String scriptString = "<script language=JavaScript>function doClick(){";
scriptString += "for(var index=0;index<myArray.length;index++)";
scriptString += "alert(myArray[index]);}<";
scriptString += "/" + "script>";
ClientScript.RegisterStartupScript(typeof(WebForm2), "arrayScript", scriptString);
2. ×¢²áÊý×é
ClientScript.RegisterArrayDeclaration("myArray", "\"x\",\"y\",\"z\"");


Ïà¹ØÎĵµ£º

asp.net »ñÈ¡ÍøÕ¾¸ùĿ¼

»ñÈ¡ÍøÕ¾¸ùĿ¼µÄ·½·¨Óм¸ÖÖÈ磺
Server.MapPath(Request.ServerVariables["PATH_INFO"])
 Server.MapPath("/")
 Server.MapPath("")
Server.MapPath(".")
 Server.MapPath("../")
 Server.MapPath("..")
  &nb ......

·µ»Ø°´Å¥µÄʵÏÖ·½·¨£¨asp.net ÖУ©


·µ»Ø°´Å¥µÄʵÏÖ·½·¨£¨asp.net ÖУ©
Òý×Ô:http://blog.sina.com.cn/s/blog_49df2d0b0100aqoy.html
·µ»ØÉÏÒ»Ò³µÄÕâ¸ö¶«¶«ÔÚÎÒÃÇ×öÏîÄ¿µÄʱºòÒ»°ãÊÇÓÃÓÚÌîдÍê±íµ¥ºóÈ·ÈϵÄʱºò£¬ÓжÔÔ­À´ÊäÈëµÄÊý¾Ý½øÐÐÐÞ¸ÄʱÓõģ¬»òÕßÊÇÒòΪÍøվΪÁË·½±ãä¯ÀÀÕ߶øÓÐÐÄÌí¼Ó µÄÒ»¸ö¶«¶«£¬Ò»°ãÕâÖÖ¹¦ÄܵÄʵÏÖÔÚASP.netÖж¼ÊÇÓÃÒ»¸öbuttonµÄ¿ ......

asp.net 顯ʾUniCodeÌØÊâ×Ö·û

­1. Web.configÖÐÌí¼Ó:
     <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
2. 頁ÃæÖÐÌí¼Ó:
    <head>
     <meta http-equiv="Content-Type" content="charset=utf-8&qu ......

˼·ÇåÎúµØ¿ª·¢Ð¡µÄasp.net webÓ¦ÓóÌÐò

   ×÷Ϊ¸öÈËÍøÕ¾»òСÐÍÍøÕ¾µÄ±àдÕߣ¬Ê®°Ë°ãÎäÒÕ¶¼µÃͨÏþÒ»µã£¬±ÈÈç˵ javascript¡¢CSS/DIV¡¢HTML¡¢±à³ÌÓïÑÔ¡¢Êý¾Ý¿â֪ʶµÈ¡£µ±ÎÒÃDZàдһ¸öСÐÍÓ¦ÓóÌÐòʱ£¬ÈçºÎ×öµ½¸ßЧ¡¢Ë¼Â·ÇåÎúÄØ£¿ÒÔÏÂÊÇÎÒµÄÒ»µã¾­Ñé×ܽᡣÓ×ÖÉÓë²»×ãÖ®´¦»¹ÍûµÃµ½Í¬ÐеÄÖ¸µã¡£
Ò»Ìõ×ܵÄ˼Ï룺ÔÚÓ¦ÓóÌÐò±àÒë·¢²¼ºó£¬aspxÎļþ¡¢dllÎļ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ