asp.netÖÐÓÃtable±í¸ñ°ó¶¨Êý¾Ý
ÆäʵÔÚasp.netÖÐÓÃtable±í¸ñ°ó¶¨Êý¾Ý£¬²¢²»ÒªÏñÔÚaspÖÐÄÇôÂé·³£¬ÄÇôÄÑÀí½â£¬Ò²²»ÒªÓÃʲôѻ·Óï¾äÀ´Ò»ÏîÏîµÄ¶ÁÈ¡Êý¾Ý£¬È»ºóÌî³ä±í¸ñ.asp.netÖÐÓÐÒ»¸ö½Ð×öRepeaterµÄ¿Ø¼þ,ÎÒÃÇ¿ÉÒÔÖ±½Ó°Ñ±í¸ñǶÈëµ½Repeater¿Ø¼þÖÐ,È»ºóÉèÖÃRepeate¿Ø¼þµÄDataSourceÊôÐÔ²¢ÈÃÆäDataBind()¾ÍOKÁË......
×öÒ»¸ö²âÊÔ:
ÎÒ´´½¨µÄSQLÊý¾Ý¿âÈçÏÂ:
create database repeater --´´½¨Êý¾Ý¿â
use repeater --ʹÓøÿâ
create table tbRepeater --´´½¨±í
(
rID int identity(1,1) primary key,
rTitle varchar(50) not null,
rText text null
)
--²åÈ뼸ÏîÊý¾Ý
insert into tbRepeater values('test1','test1')
insert into tbRepeater values('test2','test2')
insert into tbRepeater values('test3','test3')
insert into tbRepeater values('test4','test4')
insert into tbRepeater values('test5','test5')
htmlÒ³Ãæ´úÂëÈçÏÂ:
Ö÷ÒªÊÇÍϽøÒ»¸öRepeater¿Ø¼þ,È»ºóÍùËüÀïÃæǶÈë±í¸ñ²¢ÈÃÆä°ó¶¨Êý¾Ý×Ö¶Î.
<div>
<asp:Repeater ID="rpTest" runat="server">
<HeaderTemplate>
<table>
<tr>
<th>ID</th>
<th>Title</th>
<th>Text</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><asp:Label runat="server" ID="lblID" Text='<%# Eval("rID") %>'></asp:Label></td>
<td><asp:Label runat="server" ID="lblTitle" Text='<%# Eval("rTitle") %>'></asp:Label></td>
<td><asp:Label runat="server" ID="lblText" Text='<%# Eval("rText") %>'></asp:Label></td>
</tr>
</I
Ïà¹ØÎĵµ£º
ÔÚ½øÐÐASP.NETµ÷ÊÔµÄʱºò£¬ÎÒÃǾ³£ÐèÒª½èÖúһЩÍⲿ¹¤¾ßÀ´¸¨ÖúÎÒÃÇ¡£Ë×»°Ëµ£¬¹¤ÓûÉÆÆäÊ ±ØÏÈÀûÆäÆ÷¡£¿É±ðС¿´ÁËÕâЩ¹¤¾ß£¬ËüÊÇÄã½â¾ö¸´ÔÓÎÊÌâµÄ±Ø±¸ÀûÆ÷¡£±È½Ï³£ÓõÄÓÐÕâЩ£º
HTTP×¥°ü¹¤¾ß£º Microsoft Network Monitor£¬Fiddler2£¬HttpWatcher µÈ£¬Ö÷ÒªÓÃÀ´²é¿´HTTPÏûÏ¢µÄheader£¬ÒÔ¼°body¡£ http://www.mscto.com
´ ......
IIS×ÔÉíÊDz»ÄÜ´¦ÀíÏñASPXÀ©Õ¹ÃûÕâÑùµÄÒ³Ã棬ֻÄÜÖ±½ÓÇëÇóÏñHTMLÕâÑùµÄ¾²Ì¬Îļþ£¬Ö®ËùÒÔÄÜ´¦ÀíASPXÕâÑùÀ©Õ¹ÃûµÄÒ³Ã棬ÊÇÒòΪIISÓÐÒ»¸öISAPI¹ýÂËÆ÷£¬ËüÊÇÒ»¸öCOM×é¼þ¡£ASP.NET·þÎñÔÚ×¢²áµ½IISµÄʱºò£¬¾Í»áÌí¼ÓÒ»¸öWin32µÄÀ©Õ¹¶¯Ì¬¿âaspnet_isapi.dll¡£²¢½«À©Õ¹¿ÉÒÔ´¦ÀíµÄÒ³ÃæÀ©Õ¹Ãû£¨ÈçASPX£©×¢²áµ½IISÀïÃæ¡£À©Õ¹Æô¶¯ºó£¬¾Í¸ù ......
The following is a simple checklist you can use when building web
applications. Much of this still applies to other technologies and can
easily be extended. I try not to get too specific on technology or
methodology, but it is definitely leaning toward ASP.NET.
If you
......
char[] constant = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', ......
×î½ü×öµÄϵͳÖÐÀϳöÏÖµÄһЩÎÊÌⲻ̫Ã÷°×£¬ÔÚʹÓà Response.End¡¢Response.Redirect »ò Server.Transfer ʱ³öÏÖ ThreadAbortException £¬±¾À´ÏµÍ³ÊÇûÓÐÎÊÌâµÄ£¬ÔÚ±£´æÊý¾ÝʱҲ¿ÉÒÔÕý³££¬±¾À´Ê¹ÓÃtry-catch Óï¾äÊÇÓÃÀ´²¶»ñÒ»Òì³£Çé¿öµÄ£¬µ«ÏµÍ³Õý³££¬Àϲ¶»ñµ½ÏÂÃæµÄ¶«Î÷
##[²Ù×÷¼Ç¼]£º2010-02-23 9:25:12 Sys ......