易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

asp.net列表数据显示+分页

一位CSDN网友放在下载里的
/////////////////
/// <summary>
/// 分页函数
/// </summary>
/// <param name="dtRecord">数据源</param>
private void SplitPage(DataTable dtRecord) ......

asp.net中System.DateTime.Now.ToString()的一些用法

Asp.net中的日期处理函数
 //2009年4月24日
this.TextBox6.Text = System.DateTime.Now.ToString("D");
//2009-4-24
this.TextBox7.Text = System.DateTime.Now.ToString("d");
//2009年4月24日 16:30:15
this.TextBox8.Text = System.DateTime.Now.ToString("F");
//2009年4月24日 16:30
this.TextBox9.Text ......

asp.net运行原理

主要类:
  System.Web.HttpRuntime
  System.Web.HttpApplicationFactory
  System.Web.HttpApplication
  System.Web.Compilation.BuildManager
  System.Web.Compilation.ApplicationBuildProvider
  System.Web.Compilation.BuildProvidersCompiler
  System.Web.UI.PageHandlerFactory
  请求 ......

ASP.NET面试题(二)

(转 原文地址http://blog.sina.com.cn/s/blog_524c848901009e7b.html~type=v5_one&label=rela_nextarticle 作者
李洋的博客
http://blog.sina.com.cn/liiyang)
66.软件开发过程一般有几个阶段?每个阶段的作用?
答:需求分析,架构设计,代码编写,QA,部署
67.在c#中using和new这两个关键字有什么意义, ......

asp.net 获得路径

测试的url地址是http://www.test.com/testweb/default.aspx,   结果如下:  
  Request.ApplicationPath:   /testweb  
  Request.CurrentExecutionFilePath:   /testweb/default.aspx  
  Request.FilePath:   /testweb/defa ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号