ASP.NET ±àÒëºÍ²¿Êð
ÏîÄ¿ºÍÍøÕ¾µÄÇø±ð
ÏîÄ¿±àÒë³Édll£¬Íøվͨ¹ý“·¢²¼ÍøÕ¾”À´²¿Êð
²¿ÊðÄ¿µÄµØ£º/binĿ¼ÏÂ
7¸ö¶¥¼¶Ä¿Â¼¼°Æä±àÒëÇé¿ö
ÈýÖÖ²¿Êð·½Ê½¼°Æä³ÌÐò¼¯Éú³ÉÇé¿ö £¨³ÌÐò¼¯Ó°×Ó¿½±´£©
¶¨ÖƳÌÐò¼¯Éú³É£º
<compilation>
<codeSubDirectories>
<add directoryName="vb_components"/>
<add directoryName="cs_components"/>
<add directoryName="wsdl-files"/>
<add directoryName="xsd-files"/>
</codeSubDirectories>
</compilation>
ÀûÓÃApp_CodeĿ¼ ²¿Êð×Ô¶¨ÒåÊý¾ÝÔ´Àà µÄÓ¦ÓÃʾÀý
Êý¾ÝÔ´Àࣺ
namespace EssentialAspDotNet.Architecture
{
public static class MyDataSource
{
static string[] _items =
{"Item #1", "Item #2", "Item #3", "Item #4",
"Item #5", "Item #6", "Item #7", "Item #8",
"Item #9", "Item #10"};
public static string[] GetItems()
{
return _items;
}
}
}
ǰ̨ҳ£º
<body>
<form runat="server" id="_form">
<h1>Test ASP.NET 2.0 Page with declarative data binding</h1>
<asp:BulletedList runat="server" ID="_displayItems"
DataSourceID="_itemsDataSource">
<asp:ListItem>Sample item 1</asp:ListItem>
<asp:ListItem>Sample item 2 ...</asp:ListItem>
</asp:BulletedList>
<h2 runat="server" id="_messageH2">Total number of items = xx</h2>
<asp:ObjectDataSource runat="server" ID="_itemsDataSource"
TypeName="EssentialAspDotNet.Architecture.MyDataSource"
SelectMethod="GetItems" />
</form>
</body>
Ïà¹ØÎĵµ£º
Ç°¼¸ÌìÎÒûÊÂÔÚͼÊé¹Ý½è±¾··ºÙºÙ£¬Í¦ÓÐÒâ˼µÄ£¬ÁíÍâÄÇÌìÔÚÌù°É¿´µ½µÄÒ»²ÅÅ®µÄÎÊÌâͻȻÏëµ½ÁË··¾Í¿´ÁË¿´£¬Í¦ÓÐÒâ˼µÄ¡£
¾ßÌå×ܽáµÄÄÚÈÝÎÒ½ñÌìд³öÀ´£¬¿ÏÄÜÓе㳤£¬µ«ÊǶÔÍøÕ¾¾ø¶ÔÓÐÓá£
Ò³ÃæµÄ´¦ÀíĬÈÏÇé¿öÏ£¬´¦ÀíASP¡£NETÒ³ÃæµÄÄ£Ðͱ¾ÖÊÉÏÊÇͬ²½µÄ¡£Õâ˵Ã÷£¬Ò³ÃæµÄÁ÷³ÌÊǹ̶¨µÄ£¬Ã¿Ò ......
Ϊÿ¸öÓû§´æ´¢ÅäÖÃÐÅÏ¢ ÒÔÇ°±£´æÓû§ÅäÖÃÐÅϢʱÓõ½µÄÊÇsessionºÍcookie¡£ session»á»°½áÊø£¬±£´æµÄ¸öÈËÐÅÏ¢¾Í»á¶ªÊ§£¬¶øcookieÔÚÒ»¶¨³Ì¶ÈÉÏ´æÔÚ°²È«Òþ»¼
asp.net 2.0ÒýÈëµÄprofile¼¼Êõ ¿ÉÒԺܺõĽâ¾ö¸ÃÎÊÌâ¡£
Ç¿ÀàÐÍ ³¤ÆÚ±£´æ Ö§³ÖÄäÃûÓû§
¶¨ÒåÅäÖã¨profile£©
<?xml version="1.0"?>
<c ......
ASP.NET Êý¾Ý¿Ø¼þ:GridView,DataList,Repeater ,DetailsView,FormView¡£
ASP.NET Êý¾Ý¿Ø¼þ×ÛÊö£º
1.Ç°3¸öÓÃÓÚ³ÊÏÖ¶àÌõ¼Ç¼,ºóÃæ2¸öÓÃÓÚ³ÊÏÖµ¥ÌõÊý¾ÝÃ÷ϸ,¼´³£ÓõļǼÃ÷ϸ¡£
2.GridViewºÍDetailsView¿Ø¼þµÄ²¼¾Ö¹Ì¶¨,×Ô¶¨ÒåÊý¾ÝÏÔʾµÄ²¼¾Ö¹¦ÄÜÓÐÏÞ,Ò»°ãÊʺϲ¼¾Ö¼òµ¥µÄÊý¾Ý³ÊÏÖ¡£
3.DataList,RepeaterºÍFormViewÊý¾Ý ......
<a>±êÇ©
1. <a href=”test.aspx”></a>
2. ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1. Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNaviga ......