吃螺丝

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月8日

摘要: <style type="text/css"> html, body { margin: 0; padding: 30px 10px; text-align: center; } #outer { width: 780px; margin: auto; text-align: left; border: 1px solid #000; } #outer { overflow: hidden; position: relative; } .navwrap { float: left; position: relative; left: 50%; text-alig 阅读全文
posted @ 2011-03-08 10:05 吃螺丝 阅读(369) 评论(0) 推荐(1) 编辑

2011年2月28日

摘要: 今天遇到蛋疼问题,菜鸟就是菜鸟 没办法 搜了半天 原来叫冒泡事件 OK 懂了不废话 贴代码 一眼便知function stopBubble(e){ // 如果传入了事件对象,那么就是非ie浏览器 if(e&&e.stopPropagation){ //因此它支持W3C的stopPropagation()方法 e.stopPropagation(); }else{ //否则我们使用ie的方法来取消事件冒泡 window.event.cancelBubble = true; } } var obj1 = document.getElementById('obj1') 阅读全文
posted @ 2011-02-28 16:00 吃螺丝 阅读(176) 评论(0) 推荐(0) 编辑

2011年2月25日

摘要: 一、//TransmitFile实现下载 protected void Button1_Click(object sender, EventArgs e) { /* 微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400mb的文件时导致Aspnet_wp.exe进程回收而无法成功下载的问题。 代码如下: */ Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Dispos 阅读全文
posted @ 2011-02-25 13:20 吃螺丝 阅读(534) 评论(0) 推荐(1) 编辑

2011年1月18日

摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Collections;/// summary/// Summary description for entity/ 阅读全文
posted @ 2011-01-18 11:31 吃螺丝 阅读(237) 评论(0) 推荐(0) 编辑

2010年12月31日

摘要: 蛋疼 还是蛋疼 无聊写点基础东西控制台程序实现对一个类的排序using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;namespace ArrayEX{ public class Person : IComparablePerson { public string LastName { get; set; } public string FirstName { get; set; } public Person(string Last 阅读全文
posted @ 2010-12-31 16:49 吃螺丝 阅读(235) 评论(1) 推荐(0) 编辑

2010年12月29日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.Linq.Mapping;using System.Data.Linq;namespace LQ{ [Table(Name = "Customers")] //这里是将数据库中的Customers表映射到Customer类上 public class Customer { [Column] //顾名思义 列 public string CustomerID { get; set; } [Colum 阅读全文
posted @ 2010-12-29 15:09 吃螺丝 阅读(425) 评论(3) 推荐(1) 编辑

2010年12月27日

摘要: 好久没写东西了 闲的疼突然想到没写过发邮件查了下资料 写了个简单的    MailMessage mymm = new MailMessage(); mymm.From = new MailAddress("邮件地址"); mymm.To.Add(new MailAddress("邮件地址")); //在这里我只是设置了两个最基本的属性 mymm.Body = "test"; mymm.Subject = "test"; SmtpClient tmp = new SmtpClient("10.225.68.5", 25); //验证的写法 tmp.Credentials = new Syste 阅读全文
posted @ 2010-12-27 17:44 吃螺丝 阅读(384) 评论(0) 推荐(0) 编辑

2010年12月7日

摘要: 今天遇到个问题,在dialog中放了服务器端的空间dropdownlist,但是写selectindexchange事件却怎么也触发不了,然后就在网上搜,终于看到有个哥们解决了这个问题,真的谢谢他JQuery会把代码appendTo到body,而不在form里,所以按钮事件无法触发。解决方法:在点击按钮打开Dialog时,将div append到form里,使按钮生效。将弹出divappend到属于form里的div,那么服务器端控件就可以正常执行。这是那哥们说的,我试了下成功了。分享给大家。 阅读全文
posted @ 2010-12-07 13:11 吃螺丝 阅读(899) 评论(0) 推荐(0) 编辑

2010年12月3日

摘要: 以前都是用的服务器端的控件,绑定数据很随意,级联也很随意,现在要考虑用客户端控件,突然有点蛋疼,以前没怎么写过,今天认真写一个在网上找得例子,再完善一下:嘻嘻<script type="text/javascript"> var cityArr=[]; cityArr['Shanghai']=[ {txt:'zhabei',val:'zhabei'}, {txt:'huangpu',v... 阅读全文
posted @ 2010-12-03 18:17 吃螺丝 阅读(302) 评论(0) 推荐(0) 编辑

摘要: 以前都是用的服务器端的控件,绑定数据很随意,级联也很随意,现在要考虑用客户端控件,突然有点蛋疼,以前没怎么写过,今天认真写一个在网上找得例子,再完善一下:嘻嘻<script type="text/javascript"> var cityArr=[]; cityArr['Shanghai']=[ {txt:'zhabei',val:'zhabei'}, {txt:'huangpu',v... 阅读全文
posted @ 2010-12-03 17:01 吃螺丝 阅读(703) 评论(0) 推荐(0) 编辑