摘要: Xml文件:xmlsample.xml<music> <song> <artist>The Chi-lites</artist> <genre>Soul</genre> <album>A lonely man</album> <year>1972</year> </song> <song> <artist>Babyface</artist> <genre>R&amp;B</genre> <a 阅读全文
posted @ 2013-04-02 15:40 觉信 阅读(375) 评论(0) 推荐(0)
摘要: <style type="javascript/text"> // 全局方法 function reset(){ $("txtID").val(""); $("txtName").val(""); } </script> <form action="xy/ryAdd.action" target="frame"> <table> <tr> <td>编号</td> <t 阅读全文
posted @ 2013-04-01 17:31 觉信 阅读(444) 评论(0) 推荐(0)
摘要: 数据类代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Collections;using System.Reflection;namespace DAL{ public class UserManageClass { /// <summary> /// 取得总页数 /// </summary> ... 阅读全文
posted @ 2013-03-18 23:20 觉信 阅读(228) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> function btnClick() { var xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); if(!xmlHttp) { alert("创建XMLHTTP对象出错"); return false; } xml... 阅读全文
posted @ 2013-03-03 11:11 觉信 阅读(132) 评论(0) 推荐(0)
摘要: 如何生成静态页面的五种方案方案1:/// <summary>/// 传入URL返回网页的html代码/// </summary>/// <param name="Url">URL</param>/// <returns></returns>public static string getUrltoHtml(string Url){errorMsg = "";try{System.Net.WebRequest wReq = System.Net.WebRequest.Create(Ur 阅读全文
posted @ 2013-02-21 10:35 觉信 阅读(262) 评论(0) 推荐(0)
摘要: 泛型 抽象类 接口 重载 重写 new关键字 as关键字 using关键字 访问修饰符 虚方法 抽象方法 反射 ado.net linq orm 设计模式 依赖注入 ioc page生命周期 管道机制 委托 sql 阅读全文
posted @ 2013-02-20 22:33 觉信 阅读(179) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Model{ /// <summary> /// 新闻表实体类 /// </summary> public class News { private string id; /// <summary> /// 主键自增 /// </summary> public string Id { ... 阅读全文
posted @ 2013-02-19 13:41 觉信 阅读(384) 评论(0) 推荐(0)
摘要: 1.简述private、protected、public、internal修饰符的访问权限。2.列举ASP.NET页面之间传递值的几种方式。3.一列数的规则如下:1、1、2、3、5、8、13、21、34......求第30位数是多少,用递归算法实现。4.C#中的委托是什么?事件是不是一种委托?5.override与重载的区别6.如果在一个B/S结构的系统中需要传递变量值,但是又不能使用Session、Cookie、Application,您有几种方法进行处理?7.请编程遍历页面上所有TextBox控件并给它赋值为string.Empty?8.请编程实现一个冒泡排序算法?9.描述一下C#中索引器 阅读全文
posted @ 2013-02-17 10:03 觉信 阅读(380) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace DAL{ public class SQLHelper { private SqlConnection conn =null; private SqlCommand cmd = null; privat... 阅读全文
posted @ 2013-02-16 14:44 觉信 阅读(3602) 评论(0) 推荐(0)
摘要: 一、查询季度平均sql语句如下:selectjidu,avg(num)from(select*,casewhenid<4then1whenid<7then2when(id>6andid<10)then3whenid>9then4endasjidufromtest1)test1newgroupbyjidu二、查询第三名学生信息select * from (select *,row_number() over(order by score desc)as cid from status)aawhere aa.cid=3解释:status:学生信息表(id,score) 阅读全文
posted @ 2013-02-07 11:40 觉信 阅读(487) 评论(1) 推荐(0)