asp.net+access·ÖÒ³ÎÊÌâ
ÏÖÔÚÒªÓÃasp.net 2.0+Access 2003Êý¾Ý¿âÍê³É·ÖÒ³¹¦ÄÜ¡£ÌûÖ÷ÒªµÄ´úÂë¡£URL²âÊÔ²ÎÊý /category.aspx?size=3&page=4&category=CareerµÄʱºò£¬ÎÒÏ£Íû²é³öÀ´µÄÊǵÚ4Ò³µÄÊý¾Ý£¬µ«ÎÞÂÛÔõô¸ü¸ÄpageµÄ²ÎÊý£¬Êý¾ÝµÄÏÔʾ¶¼²»ÕýÈ·£¬×ÜÊÇɸѡ³öÇ°ÃæµÄ¼¸±Ê¼Ç¼¡£ÇëÎʸßÊÖÕâÊÇÔõô»ØÊÂÄØ£¿
1¡¢Êý¾Ý·ÃÎʲãPostADL.cs
C# code:
/// <summary>
/// ¸ù¾ÝÎÄÕµÄÀà±ð¼°Ò³Â룬·ÖÒ³ÏÔʾÎÄÕÂÐÅÏ¢
/// </summary>
/// <param name="pageSize">ÿҳҪÏÔʾµÄ¼Ç¼±ÊÊý</param>
/// <param name="pageIndex">µ±Ç°ËùÔÚµÄÒ³ÃæÂë</param>
/// <param name="category">ÎÄÕµÄÀà±ð</param>
/// <returns></returns>
public List<Post> PostPager(int pageSize, int pageIndex, string category)
{
List<Post> lstPost = new List<Post>();
Post post = null;
string cmdText = "SELECT TOP " + pageSize + " A.post_id, A.post_title, A.post_content, A.post_time, A.user_id, A.post_from_name, A.post_from_url, A.post_approved, A.post_recommend, A.post_on_top, A.post_author, A.comment_lock, B.column_id, B.column_name, C.tag_id, C.tag_name, D.user_name from post_def A, column_def B, tag_def C, user_def D WHERE "
+ "A.post_id NOT IN (select top " + pageSize * pageIndex + " post_id from post_def) "
+ "AND A.column_id = B.column_id "
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
ÔÚµ¯³ö¿òÖеã»÷Ò»¸ö°´Å¥£¬Ôõôµ÷תµ½ÁíÒ»¸öä¯ÀÀÆ÷£¬²¢ÇÒÔÚ¸Ãä¯ÀÀÆ÷´ò¿ªÁ½¸öÒ³Ãæ
ÄãµÄÒâ˼Ӧ¸ÃÊÇ
response.write("<script>alert('È·ÈÏ'); window.location.href('xxxx.aspx'); </script>"); ......
ÇëÎÊһϣ¬ASP.NETÎÒÓÃÒ»¸ö²ãÖзÅÁËÒ»¸öÈÕÀú¿Ø¼þ£¬ÔÚµãÒ»¸ö°´Å¥Ê±£¬ÏÔʾÕâ¸ö²ã£¿ÏÖÔÚÎÊÌâÊÇÎÒÔڵ㰴ťʱ£¬ÎÒÏë°Ñ²ãÏÔʾÔÚ°´Å¥µÄÏ·½£¿¾ÍÏñÏÂÀÈÕÆڿؼþÒ»Ñù£¬ÎÒÓÃÊǵÄASP.NET C#
ÎÒÓÐÕâôһ¸öÈÕÆڿؼþ£¬£¡µã»÷¿ÉÒÔÑ ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......
ÎÒÏëÿÌì°ëÒ¹×Ô¶¯Éú³É¾²Ì¬Ò³Ãæ¡£
ÔõôʵÏÖÕâ¸ö·½·¨¡£
ÄÇλ¸ßÊÖÖªµÀ£¬Çë´Í½ÌÏ¡£
д·þÎñ!
Ôõôд
д·þÎñ ¿ªÏß³Ì Ð´Îļþ ÈëÊý¾Ý¿â
д·þÎñ»òÕßÓÿªÔ´µÄµ÷¶È¿ò¼ÜQuartz.net
½¨ÒéÓúóÕߣ¬ºóÕßÌṩ±È½ÏÁé»îµ ......