asp.net + jquery+json µÄ¼òµ¥ÊµÀý
ÕâÀïÊÇÎÒµÄÒ»¸ö¼òµ¥µÄjquery+jsonµÄÁ¬¿â²Ù×÷£¬Ö»ÊÇÒ»¸ö¼òµ¥²éѯ£¬
//ºǫ́´úÂë
<%@ WebHandler Language="C#" Class="show" %>
using System;
using System.Web;
using System.Collections.Generic;
using Model;
using DAL;
using System.Web.Script.Serialization;
public class show : IHttpHandler {
public void ProcessRequest (HttpContext context) {
JavaScriptSerializer serializer=new JavaScriptSerializer();
//µ÷Óúǫ́·½·¨
IList<test> tt = testservice.getalltest();
//ÐòÁл¯
string date= serializer.Serialize(tt);
context.Response.ContentType = "text/plain";
context.Response.Write(date);
}
public bool IsReusable {
get {
return false;
}
}
}
//ǰ̨´úÂë
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
&n
Ïà¹ØÎĵµ£º
һλCSDNÍøÓÑ·ÅÔÚÏÂÔØÀïµÄ
/////////////////
/// <summary>
/// ·ÖÒ³º¯Êý
/// </summary>
/// <param name="dtRecord">Êý¾ÝÔ´</param>
private void SplitPage(DataTable dtRecord) ......
ËäÈ»ÎÒ²»Ï²»¶ÌÖÂÛÌ«¶àÀíÂÛ¸ÅÄîÉϵĶ«Î÷£¬µ«¸÷λ“ש¼Ò”»¹ÊÇÌá³öÁ˺ܶà·Ç³£ÓÐÕë¶ÔÐÔµÄÒâ¼û£¬Íû´ËÌû²»Òª³ÉΪ¿Úˮս²ÅºÃ....ÏÖ´ðÒÉÈçÏ£¨Óкܶà¸öÈËÀí½â£¬²»Ò»¶¨ÕýÈ·£©£º
ש¼ÒÒâ¼ûÇë²Î¼û£ºAsp.Net´óÐÍÏîĿʵ¼ùϵÁе¼º½
ΪʲôѡÔñNHibernate
ÀíÓÉ1£º¶ÔÏó¹ØϵӳÉä¼¼Êõ£¨ORM£©µÄ×îÖ÷ҪĿµÄÊÇΪÁ˽â¾ö¹ØϵÐÍÊý¾Ý¿âÓ ......
SP.NETÃæÊÔÌâ
£¨×ª ÔÎĵØÖ·http://blog.sina.com.cn/s/blog_524c848901009e7b.html~type=v5_one&label=rela_nextarticle ×÷Õß
ÀîÑóµÄ²©¿Í
http://blog.sina.com.cn/liiyang£©
1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
prote ......
ASP.NET MVC ÈëÃÅ2¡¢ÏîÄ¿µÄĿ¼½á¹¹ÓëºËÐĵÄDLL
ÊÕ²Ø
< type="text/javascript">
document.body.oncopy = function() {
if (window.clipb ......
±¾ÏµÁÐÎÄÕ»ùÓÚASP.NET MVC Preview5.
ControllerÊÇMVCÖбȽÏÖØÒªµÄÒ»²¿·Ö¡£¼¸ºõËùÓеÄÒµÎñÂß¼¶¼ÊÇÔÚÕâÀï½øÐд¦ÀíµÄ£¬²¢ÇÒ´ÓModelÖÐÈ¡³öÊý¾Ý¡£ÔÚASP.NET
MVC
Preview5ÖУ¬½«ÔÀ´µÄControllerÀàÒ»·ÖΪ¶þ£¬·ÖΪÁËControllerÀàºÍControllerBaseÀà¡£ControllerÀà
¼Ì³Ð×ÔControllerBaseÀ࣬¶øControllerBaseʵÏÖÊÇÁËICont ......