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

ת ASP.Net »ñÈ¡ÎļþµÄ·¾¶

Ò»¡¢»ñÈ¡µ±Ç°ÎļþµÄ·¾¶
1.   System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
     »ñÈ¡Ä£¿éµÄÍêÕû·¾¶£¬°üÀ¨ÎļþÃû¡£
2.   System.Environment.CurrentDirectory
     »ñÈ¡ºÍÉèÖõ±Ç°Ä¿Â¼(¸Ã½ø³Ì´ÓÖÐÆô¶¯µÄĿ¼)µÄÍêÈ«ÏÞ¶¨Ä¿Â¼¡£
3.   System.IO.Directory.GetCurrentDirectory()
     »ñÈ¡Ó¦ÓóÌÐòµÄµ±Ç°¹¤×÷Ŀ¼¡£Õâ¸ö²»Ò»¶¨ÊdzÌÐò´ÓÖÐÆô¶¯µÄĿ¼°¡£¬ÓпÉÄܳÌÐò·ÅÔÚC:\wwwÀï,Õâ¸öº¯ÊýÓпÉÄÜ·µ»ØC:\Documents and Settings\ZYB\,»òÕßC:\Program Files\Adobe\,ÓÐʱ²»Ò»¶¨·µ»Øʲô¶«¶«£¬ÕâÊÇÈκÎÓ¦ÓóÌÐò×îºóÒ»´Î²Ù×÷¹ýµÄĿ¼£¬±ÈÈçÄãÓÃWord´ò¿ªÁËE:\doc\my.docÕâ¸öÎÄ ¼þ£¬´ËʱִÐÐÕâ¸ö·½·¨¾Í·µ»ØÁËE:\docÁË¡£
4.  System.AppDomain.CurrentDomain.BaseDirectory
     »ñÈ¡³ÌÐòµÄ»ùĿ¼¡£
5.  System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
     »ñÈ¡ºÍÉèÖðüÀ¨¸ÃÓ¦ÓóÌÐòµÄĿ¼µÄÃû³Æ¡£
6.  System.Windows.Forms.Application.StartupPath
     »ñÈ¡Æô¶¯ÁËÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþµÄ·¾¶¡£Ð§¹ûºÍ2¡¢5Ò»Ñù¡£Ö»ÊÇ5·µ»ØµÄ×Ö·û´®ºóÃæ¶àÁËÒ»¸ö"\"¶øÒÑ
7.  System.Windows.Forms.Application.ExecutablePath
     »ñÈ¡Æô¶¯ÁËÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþµÄ·¾¶¼°ÎļþÃû£¬Ð§¹ûºÍ1Ò»Ñù¡£
¶þ¡¢²Ù×÷»·¾³±äÁ¿
ÀûÓÃSystem.Environment.GetEnvironmentVariable()·½·¨¿ÉÒԺܷ½±ãµØÈ¡µÃϵͳ»·¾³±äÁ¿£¬È磺
System.Environment.GetEnvironmentVariable("windir")¾Í¿ÉÒÔÈ¡µÃwindowsϵͳĿ¼µÄ·¾¶¡£
ÒÔÏÂÊÇһЩ³£ÓõĻ·¾³±äÁ¿È¡Öµ£º
System.Environment.GetEnvironmentVariable("windir");
System.Environment.GetEnvironmentVariable("INCLUDE");
System.Environment.GetEnvironmentVariable("TMP");
System.Environment.GetEnvironmentVariable("TEMP");
System.Environment.GetEnvironmentVariable("Path");
×îºóÌù³öÎÒ½øÐÐÉÏÃæ²Ù×÷»ñµÃµÄ±äÁ¿Öµ£¬ÊÂÏÈ˵Ã÷£¬±¾ÈËÊDZàдÁËÒ»¸öWinForm³ÌÐò£¬ÏîÄ¿Îļþ´æ·ÅÓÚD:\Visual Studio Projects\MyApplication\LifeAssistant£¬±àÒëºóµÄÎļþλÓÚD:\Visual Studio Projects\MyApplication\LifeAssistant\bin\Debug£¬×îºóµÄ½á¹ûÈçÏ£º
1¡¢ System.Diagnostics.


Ïà¹ØÎĵµ£º

asp.netÔÚÓÃajaxµÄʱºòÈçºÎµ¯³ö¶Ô»°¿ò


<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <asp:updatepanel ID="UP" runat="server">
      <ContentTemplate>
......

ASP.NETÒ³Ãæ¼ä´«Öµ·½·¨

Ò»¡¢Ä¿Ç°ÔÚASP.NETÖÐÒ³Ãæ´«Öµ¹²ÓÐÕâô¼¸ÖÖ·½Ê½£º
1¡¢±íµ¥Ìá½»£¬
   <form action= "target.aspx" method = "post" name = "form1">
<input name = "param1" value = "1111"/>
<input name = "param2" value = "2222"/>
   </form>
   ....
   for ......

asp.net formÑéÖ¤

Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇ¼ҳÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶Ë¡£·þÎñ¶ËÉ ......

ASP.net ÉèÖÃĬÈÏ°´Å¥

 public static void SetEnterControl(System.Web.UI.Control Ctrl)
    {
        Page mPage = Ctrl.Page;
        string mScript;
        mScript = @"<script language=""jav ......

ÈçºÎʹÓÃASP.NET Profile

Asp.NetÖÐÓÐÒ»Ì×ÓëÓû§Ïà¹ØÁªµÄÊôÐÔÉèÖ㬿ÉÒÔͨ¹ýÔÚWebConfigÀïÅäÖÃÀ´Ö±½ÓʹÓã¬ËûµÄ×÷ÓÃΪ
´æ´¢ºÍʹÓÃΨһÓëÓû§¶ÔÓ¦µÄÐÅÏ¢
Õ¹ÏÖ¸öÈË»¯°æ±¾µÄWebÓ¦ÓóÌÐò
Óû§µÄΨһÉí·Ý±êʶÔÚÔٴηÃÎÊʱʶ±ðÓû§
Asp.Net ProfileÌṩµÄ¸úÓû§Ïà¹ØµÄÀàÐͶ¼ÊÇÇ¿ÀàÐÍ
Ê×ÏÈÉú³ÉÊý¾Ý¿â½Å±¾£¬Ê¹ÓÃVisual Studio 2005 ÃüÁîÌáʾ£¬ÊäÈëÃü ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ