·ºÐÍͨÓö¯Ì¬²éѯ(LinQ+Ajax)
ÎҵĴºÇï³ÕÃεڶþ²½£º
дһ¸ö ͨÓÃµÄ ¶ÔÏó ÁÐ±í £¬»¹ °üº¬ ËÑË÷ºÍ ÊôÐÔ¹ýÂË¡£
¾ßÌåµÄЧ¹ûÊÇ£º
µ±Ð ҵÎñ Ìí¼ÓÒ»¸ö ±íµÄʱºò£¬Ö»ÐèÒªÔÚ ¶ÔÏóÄ£ÐÍÀïµÄ Ìí¼ÓÒ»¸ö model
ºǫ́¼¸ºõ²»Ðèд´úÂë¡£
(ÎÒÊǺǫ́£º¼¤¶¯ÈËÐÄ£¡)
µ÷ÓõĶÔÏ󣬵ڼ¸Ò³£¬ÊôÐ﵀ ¹ýÂË ºÍËÑË÷È«ÊÇ Ç°Ì¨µÄAjax²ÎÊý¿ØÖÆ
(ÎÒÊÇǰ̨£º#$!@#$%$^#$%# )
ÏÂÃæ˵˵ÎÒµÄ˼·°É£º
1.ǰ̨·¢³öÇëÇó дÃ÷ µ÷ÓÃµÄ modleName ºÍ һЩÊôÐÔ µÄ¹ýÂË
È磺Author like,1 ModelName Article ËÑË÷×÷Õß °üº¬ 1 ¶ÔÏóÃû ÎÄÕÂ
2.ºǫ́½ÓÊÜ ´¦Àí´«µÝµÄ²ÎÊý
3.¸ù¾Ý ¶ÔÏóÃû µ÷Óà ¶ÔÏó ²¢¹ýÂË
4.¸ù¾Ý ¶ÔÏóÃû ·µ»Ø ¶ÔÓ¦ Ò³Ãæ
1.ǰ̨JS ´úÂë
ǰ̨´úÂë
//================================================
//ºǫ́ÈÎÒ» ÀàÐÍ Áбí
//================================================
function AjaxForList(duixiang, pageid) {
var searchWords = $("#SearchWords").val();
var searchType = $("#SearchType").val();
var channelId = $("#list").val();
var IsRecycle = $("#IsRecycle").attr("checked");
//ÅÅÐòÃû
var sortName = "CreaterData";
//==================IsRecycle
var Del = new Array();
Del.push("="); //alert(IsRecycle);
if (IsRecycle) { Del.push(1); }
else { Del.push(0); }
//==================FullTitle
// 2010-3-22 0:00:00
var FullTitle = new Array();
FullTitle.push("like");
FullTitle.push("1");
//==================FullTitle
var Author = new Array();
Author.push("like");
Author.push("1");
//==================IsAudit
var IsAudit = new Array();
IsAudit.push("=");
IsAudit.push("0");
//============================
$.ajax(//
{
type: "POST",
url: "/Admin/UserKJ/AjaxForList",
data: "ModelName=" + duixiang + "&&PageId=" + pageid + "&&sortName=" + sortName + "&&Del=" + Del + "&&FullTitle=" + FullTitle + "&&Author=" + Author + "&&IsAudit=" + IsAudit,
dataType: "html",
beforeSend: function(XMLHttpReq
Ïà¹ØÎĵµ£º
web2.0ºá¿Õ³öÊÀ£¬ajaxÊ×µ±Æä³å£¬½ñÌì×öwebµÄÈç¹ûÔÙ²»Ñ§µãajaxµÄ»°£¬¾ÍÏÔµÄÂäÎéÁË£¬¶øѧajaxµÄÓõĻ·¾³Èç¹ûÊÇasp.net£¬ÄÇajax.netÄã¾Í²»µÃ²»Ñ§ÁË¡£Ê×ÏȾÍÊÇ»·¾³µÄÅäÖã¬ÈçÏÂ
vs2005+sql2005+Winxp sp2+ie6.0+Office2003»·¾³ÉèÖÃÈçÏ£º
ÏÂÔØÍê ASPAJAXExtSetup.msi °²×°¸üкóÔÚÄãµÄϵͳÅÌϵģ¨ÒÔCÅÌΪÀý£© ³öÏÖÕâ¸ö Îļ ......
ÈçÉÏͼËùʾµÄµÈ¼¶¿Ø¼þ£¨Õâ¸ö¿Ø¼þÖ÷ÒªÖ¸¶¨Ñùʽ£©£º
Ò³Ãæ´úÂ룺
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<mce:style type ="text/css"><!--
.ratingStar
{
font-size:0pt;
width:15px;
height:12px;
......
<html>
<body>
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Inte ......