.net软件开发工程师面试题

摘要: 一.填空题(每空1分,共12分)1面向对象的语言具有__封装______性、__继承_______性、__多态______性。2能用foreach遍历访问的对象需要实现 ____Ienumerable____________接口或声明_____GetEnumerator___________方法的类型。3当类T只声明了私有实例构造函数时,则在T的程序文本外部,___不可以___(可以 or 不可以)从T派生出新的类,在T的内部__可以__(可以 or 不可以)直接创建T的任何实例,在T的外部__不可以__(可以 or 不可以)直接创建T的任何实例。4. 委托声明的关键字是__Delegate_ 阅读全文
posted @ 2013-04-14 23:48 平小 阅读(1474) 评论(0) 推荐(0) 编辑

美女图片的显示

摘要: <html xmlns="http://www.w3.org/1999/xhtml" ><head> <title></title> <script src="../js/jquery-1.3.2.js" type="text/javascript"></script> <script type="text/javascript"> var data = { "/images/11.jpg": ["/i 阅读全文
posted @ 2013-03-25 13:11 平小 阅读(157) 评论(0) 推荐(0) 编辑

dom积累

摘要: dom document object model 文档对象模型1、事件 body 事件 onload onunload onbeforeunload 常见事件 onclick(单击)、ondblclick(双击)、onkeydown(按键按下)、onkeypress(点击按键)、onkeyup(按键释放)、onmousedown(鼠标按下)、onmousemove(鼠标移动)、onmouseout(鼠标离开元素范围)、onmouseover(鼠标移动到元素范围)、onmouseup(鼠标按键释放2、动态设置事件 类似于net中注册事件 document.ondbclick = f1; //让 阅读全文
posted @ 2013-03-21 22:12 平小 阅读(115) 评论(0) 推荐(0) 编辑

简单的正则表达式

摘要: var reg = /^[0-9a-zA-Z]{6,16}$/;//6-16个英文或数字QQ:[1-9]\d{5,11}身份证:\d{17}[\d|X] 阅读全文
posted @ 2013-03-21 22:11 平小 阅读(130) 评论(0) 推荐(0) 编辑

通过GET方式进行Ajax操作;

摘要: var xhr; window.onload = function () { xhr = createXmlHttp(); } function doAjax() { xhr.open("GET", "Ajax.aspx?isAjax=1", true); xhr.onreadystatechange = watching; xhr.send(null); } function watching() { if (xhr.readyState==4) { if (xhr.status == 200) { var txt = xhr.responseText 阅读全文
posted @ 2013-03-21 22:10 平小 阅读(141) 评论(0) 推荐(0) 编辑

创建xhr对象实现浏览器全兼容

摘要: function createXmlHttp() {//创建xhr对象 var xhobj = false; try { xhobj = new ActiveXObject("Msxml2.XMLHTTP"); // ie msxml3.0+ } catch (e) { try { xhobj = new ActiveXObject("Microsoft.XMLHTTP"); //ie msxml2.6 } catch (e2) { xhobj = false; } } if (!xhobj && typeof XMLHttpReques 阅读全文
posted @ 2013-03-21 22:09 平小 阅读(212) 评论(0) 推荐(0) 编辑

让图片以2进制的形式保存在数据库中

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->int len = fu.PostedFile.ContentLength; // 图片大小 byte[] pic = new byte[len]; // 创建一个字节数组,大小为图片的大小,数据库中就存储这个东西 fu.PostedFile.InputStream.Read(pic, 0, len); // 把上传控件中的文件用二进制读取存到pic字节数组中 // 插入图片到数据库中 SqlC 阅读全文
posted @ 2013-03-19 12:12 平小 阅读(245) 评论(0) 推荐(0) 编辑

网站积累

摘要: 数据库连接:<appSettings/><connectionStrings> <add name="conn" connectionString="Data Source=FUCK-PC\SQLEXPRESS;Initial Catalog=jxcSystem;Integrated Security=True"/> </connectionStrings><system.web> <!--出错时跳转页--> <customErrors mode="On" 阅读全文
posted @ 2013-03-19 11:58 平小 阅读(125) 评论(0) 推荐(0) 编辑

使用md5加密的登录密码

摘要: using System.Web.Security;//导入命名空间string pwd = FormsAuthentication.HashPasswordForStoringInConfigFile(textbox1.Text.Trim(), "MD5"); 阅读全文
posted @ 2013-03-07 18:49 平小 阅读(194) 评论(0) 推荐(0) 编辑