02 2014 档案

摘要:functioncheckAll(){varCkall=document.getElementById("cAll");varCks=document.getElementsByName("c");for(vari=0;i<Cks.length;i++){Cks[i].checked=Ckall.checked;}}Window.onload=function(){Varck=Document.getelementbyid(“cAll”);Ck.onclick=checkAll;} 阅读全文
posted @ 2014-02-28 19:38 南瓜asp 阅读(213) 评论(0) 推荐(0)
摘要:(如:当前页地址为http://www.tgnet.com/index.aspx?id=123&name=test,输入"id"即获得"123",输入"name"获得"test")function QueryString (val){ var uri = window.location.sear... 阅读全文
posted @ 2014-02-22 17:20 南瓜asp 阅读(748) 评论(0) 推荐(0)
摘要:static void Main(string[] args) { int[] num = new int[100]; ArrayList Mylist = new ArrayList(); Random rd = new Random(); while (Mylist.Count num[i + 1]) { int temp = num[i]; num[i] ... 阅读全文
posted @ 2014-02-14 17:48 南瓜asp 阅读(269) 评论(0) 推荐(0)
摘要:技术类面试、笔试题汇总注:标明*的问题属于选择性掌握的内容,能掌握更好,没掌握也没关系。下面的参考解答只是帮助大家理解,不用背,面试题、笔试题千变万化,不要梦想着把题覆盖了,下面的题是供大家查漏补缺用的,真正的把这些题搞懂了,才能“以不变应万变”。回答问题的时候能联系做过项目的例子是最好的,有的问题后面我已经补充联系到项目中的对应的案例了。1、简述private、protected、public、internal修饰符的访问权限。private:私有成员,在类的内部才可以访问。protected:保护成员,该类内部和继承类中可以访问。public:公共成员,完全公开,没有访问限制。intern 阅读全文
posted @ 2014-02-12 15:15 南瓜asp 阅读(550) 评论(0) 推荐(0)
摘要:using System;using System.Web;public class FileUp : IHttpHandler { string modelPath = "model.htm"; string strHtml = ""; public void ProcessRequest (HttpContext context) { System.Web.UI.WebControls.Button btn = new System.Web.UI.WebControls.Button(); //尝试检查浏览器是否传递过来一个叫 isPostBa... 阅读全文
posted @ 2014-02-08 17:56 南瓜asp 阅读(141) 评论(0) 推荐(0)
摘要:1 2 3 using System; 4 using System.Web; 5 using System.Drawing; 6 7 public class MakeImg : IHttpHandler { 8 9 public void ProcessRequest (HttpContext context) {10 context.Response.ContentType = "image/jpg";//告诉浏览器以什么编码方式处理2进制流11 string imgPath="upload\\1.jpg";12 ... 阅读全文
posted @ 2014-02-08 16:19 南瓜asp 阅读(234) 评论(0) 推荐(0)