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

ʹÓÃ×Ô¶¨ÒåÕ¾µãµØͼÌṩ³ÌÐò¿ØÖÆASP.NETµÄ²Ëµ¥

         ASP.NETÌṩµÄÕ¾µãµØͼΪÎÒÃǽ¨Á¢µ¼º½À¸ºÍ²Ëµ¥ÌṩÁ˼«´óµÄ·½±ã¡£´ËÍâÎÒÃÇ»¹¿ÉÒÔ½¨Á¢×Ô¼ºµÄÕ¾µãµØͼÌṩ³ÌÐò£¬´Ó¶øʹÎÒÃǵIJ˵¥Ïî¿É¿Ø¡£
 
    ÏÈÀ´Á˽âÏÂmenuµÈµ¼º½¿Ø¼þÓëÕ¾µãµØͼµÄ¹Øϵ¡£ÎÒÃÇÔÚASP .NETÏîÄ¿ÖÐËù½¨Á¢µÄweb.siteMap Æäʵ¾ÍÊÇÒ»¸ö×ñÑ­Ò»¶¨¹æ·¶µÄxmlÎļþ£¬ÎÒÃǽÐËüÕ¾µãµØͼÎļþ¡£Dot net ΪÎÒÃǶ¨ÒåÁËÕ¾µãµØͼÌṩ³ÌÐò¡£Õâ¸öÕ¾µãµØͼÌṩ³ÌÐòËùÍê³ÉµÄÈÎÎñ¾ÍÊÇÒª¶Á³öÎÒÃÇËùÐèÒª×÷Ϊµ¼º½µÄÊý¾Ý¡£ÀýÈçASP.NET ĬÈϵÄÕ¾µãµØͼÌṩ³ÌÐòÊÇxmlSiteMapProvider£¨Æäʵ¾ÍÊÇÒ»¸öÀࣩ£¬Í¨³£Çé¿öÏ£¬menuµÈwebµ¼º½¿Ø¼þÊÇͨ¹ý´ËÀà¶ÁÈ¡web.siteMapÎļþÖеÄÊý¾ÝµÄ¡£
 
         Dot net ÖÐÓÐĬÈϵÄÕ¾µãµØͼÌṩ³ÌÐò£¬Í¬Ê±ËüÒ²ÔÊÐíÎÒÃÇ×Ô¼º´´½¨×Ô¼ºµÄÕ¾µãµØͼÌṩ³ÌÐò£¨Àࣩ£¬Ò²¾ÍÊÇÌṩһ¸ö´ÓÆäËûÊý¾ÝÔ´ÖжÁÊý¾ÝµÄÀà¡£¶àÊýÇé¿öÏ£¬ÎÒÃǵÄÊý¾Ý»á´æÔÚÊý¾Ý¿âÖУ¬¶ø²»½ö½öÊǹ̶¨ÔÚweb.siteMapÎļþÖС£ÕâʱÎÒÃÇÕ¾µãµØͼÌṩ³ÌÐò£¬±ã¿ÉÒԼ̳ÐStaticSiteMapProviderÀàÀ´Íê³ÉÁË¡£ÊµÏÖ´ËÀàÓÐÈý¸ö·½·¨ÊDZØÐëÖØдµÄ£¬ËüÃÇÊÇ£ºInitialize£¬GetRootNodeCoreºÍBuildSiteMap¡£
 
    Íê³É×Ô¼ºµÄÕ¾µãµØͼÌṩ³ÌÐòºó£¬ÎÒÃÇ»¹ÐèÒª¸æËßASP DOT NET ĬÈÏÌṩ³ÌÐòÊÇÎÒÃÇн¨µÄÀà¡£ÕâÐèÒªÔÚweb.configÅäÖÃÎļþÖÐÉèÖᣴúÂëÈçÏ£º
<siteMap>
          <providers>
               <add name="mySiteMapProvider" type="SiteProviderExe" conn="Data Source=MICROSO-1PGF29S\SQLEXPRESS;Initial Catalog=Demo;User ID=sa;Password=123;"/>
          </providers>
       </siteMap>
 Òª×¢Òâ Õⲿ·Ö´úÂëÊÇÔÚÅäÖÃÎļþÖеÄ< system.web>±êÇ©ÖÐÉèÖõġ£ÆäÖеÄÀàÐÍ£¨type£©¾ÍÊÇÎÒÃÇÕ¾µãµØͼÌṩ³ÌÐòµÄÀàµÄÀàÐÍ£¬nameÔòÊÇËæ±ãÆðµÄ£¬ºóÃæµÄ×Ö·û´®ÊÇÁ¬½ÓÊý¾Ý¿âµÄ×Ö·û´®¡£
 Íê³ÉÕâºóÎÒÃÇ»¹ÐèÒªÔÚweb.siteMapÎļþÖÐÌí¼Ó½Úµã£º<siteMapNode provider="mySiteMapProvider" />£¬×¢ÒâÕâ¾ÍÊǸղŵÄname ¡£
 ÔÙÔÚÊý¾Ý¿âÖд洢ºÃÎÒÃǵÄÎļþ¾Í¿ÉÒÔÁË¡£²»¹ýÏÖÔÚÎÒÃÇ»¹Ã»¸ø×


Ïà¹ØÎĵµ£º

ASP.NETʵÏÖÔöɾ¸Ä²éµÈ¹¦ÄÜ(Access°æ)ϵͳ֮Îå ¸üÐÂ

¸üз½·¨Ò»£¬Ö±½ÓÔÚGridViewÖÐÀ´¸üÐÂÊý¾Ý.
¸üз½·¨¶þ£¬´ò¿ªÒ»¸öеÄÒ³ÃæÀ´¸üÐÂÊý¾Ý.
//¸üÐÂ
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        GridView1.EditIndex = e.NewEditIndex;
 &nbs ......

asp.net (c#)¿Ø¼þ´óÈ«

DataGridView ¿Ø¼þDataGridView ¿Ø¼þÌṩÓÃÀ´ÏÔʾÊý¾ÝµÄ¿É×Ô¶¨Òå±í¡£Ê¹Óà DataGridView À࣬¿ÉÒÔ×Ô¶¨Òåµ¥Ôª¸ñ¡¢ÐС¢Áкͱ߿ò¡£
×¢Òâ
DataGridView ¿Ø¼þÌṩ DataGrid ¿Ø¼þËù²»¾ß±¸µÄÐí¶à»ù±¾ºÍ¸ß¼¶¹¦ÄÜ¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼û Windows ´°Ìå DataGridView ¿Ø¼þºÍ
DataGrid ¿Ø¼þÖ®¼äµÄÇø±ð
³£ÓÃÊôÐÔ:
DefaultCellStyle¡¢ ......

Asp.NET»ñÈ¡Îļþ¼°Æä·¾¶


¡¾Ïà¶Ô·¾¶¡¿
Request.ApplicationPath
/src
Path.GetDirectoryName(HttpContext.Current.Request.RawUrl )
\\src\\Xiaoshe
Context.Request.Path
/src/Xiaoshe/Xiaoshe_New.aspx
Context.Request.CurrentExecutionFilePath
/src/Xiaoshe/Xiaoshe_New.aspx
Context.Request.FilePath
/src/Xiaoshe/Xiaoshe ......

ÔÚasp.net AJAX¿Í»§¶ËʹÓø´ÔÓÊý¾ÝÀàÐÍ·½·¨

<script language="javascript" type="text/javascript"> 
¡¡¡¡function doubleSalary()
¡¡¡¡{
¡¡¡¡var employee = new Object();
¡¡¡¡employee.FirstName = "X";
¡¡¡¡employee.LastName = "PP";
¡¡¡¡employee.Salary = 1000;
......

jQueryµ÷ÓÃAsp.net AjaxÒ³ÃæÖеķ½·¨

Ô­À´ÓÃjQueryµÄajax·½Ê½µ÷ÓÃasp.netÒ³Ãæ»ù±¾¶¼Êǵ÷Óõ¥¸öÒ³Ã棬Óɵ÷ÓÃÒ³ÃæResponseÄÚÈÝ£¬¶øÏÖÔÚ²ÉÓÃasp.net ajaxºó£¬ÎÒÃÇÔò¿ÉÒÔ¸üÍêÃÀµÄʹÓÃjQueryºÍasp.net½áºÏÁË£¬´úÂëÈçÏ£º
 
<asp:ScriptManager ID="ScriptManager1" runat="server" >
<Scripts>
<asp:ScriptReference Path="http ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ