- 博客(97)
- 收藏
- 关注
转载 aspx 常见错误 CS0016: 未能写入输出文件“c:/WINDOWS/Micros
aspx 常见错误 CS0016: 未能写入输出文件“c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/.........dll”--“拒绝访问。 ” win7中安装asp.net的问题 编译器错误信息: CS0016: 未能写入输出文件问题解决办法编译错误 说明: 在编译向该请求提供服务所需资源
2014-05-31 14:23:48 579
原创 修改WAMP默认的80端口
WAMP装好之后默认的端口是80,但是这个80端口呢,是热门端口,迅雷,IIS都挺喜欢,在WIN7下本来还有1个进程也点80,让人伤脑筋啊,所以把它改掉,方法如下: 一、修改APACHE的监听端口, 1、在界面中选apache,弹出隐藏菜单选项,打开配置文件httpd.conf; 2、找到Listen 80 和 ServerName
2014-05-31 11:55:05 1674
转载 zendstudio默认的模板
zendstudio默认的模板不适用,可以自己到Window -- preferences -- php -- code style -- code templates -- code -- sample php file,然后修改成你想要的结构
2014-05-30 21:34:25 482
原创 post基本格式
$(function () { $("#btn_reg").click(function () { if ($("#txtusername").val().length == 0) { showmes("用户名不能为空!"); re
2014-05-24 17:00:34 460
原创 ajax基本格式
$(function () { $("#like").click(function () { $.ajax({ type: 'post', url: 'add.ashx', data:
2014-05-24 16:58:57 363
原创 最简单的Ajax点赞实现方法
//赞 $(function () { $("#like").click(function () { $.ajax({ type:'post', url:'/Resou
2014-05-24 16:14:50 3229 1
原创 javascript页面判断标题是否为空
$(function () { $("#btnsub").click(function () { if ($("#txttitle").val().length==0) { showmes("请填加标题!"); }
2014-05-23 16:11:27 614
原创 htm按扭激活.net按扭过程
$(function () { $("#imgbtn").click(function () { $("#Button1").click(); })})
2014-05-23 10:10:23 440
原创 通用css+ascx-热门稿件排行
.ph_right{ width:100%; text-align:center;}.ph_right h1{ font-size:18px; color:#F30; background:#EEE; border-bottom:1px solid #CCC; height:35px; line-height:35px; font-weight:normal;}.ph_right ul{ ma
2014-05-22 14:59:11 376
原创 文章显示页基本代码
public partial class gaojian_gaojian_view : PageBase{ xjz.BLL.article ArticleBLL = new xjz.BLL.article(); xjz.BLL.article_pinglun pingBLL = new xjz.BLL.article_pinglun(); protected xjz.Mo
2014-05-22 10:52:32 870
原创 过滤 按类别取文章列表 按条件分页
public partial class gaojian_all : PageBase{ xjz.BLL.article ArticleBLL = new xjz.BLL.article(); xjz.BLL.article_class ArticleClassBLL = new xjz.BLL.article_class(); protected xjz.Model.a
2014-05-22 10:43:19 403
原创 字段值加1
//增加school表小记者数 public void UpXjzNums(int Sid) { Dqt.Reporter.Model.school model = schoolBll.GetModel(Sid); if (model != null) { model.XjzNums = ++model.Xjz
2014-05-19 08:37:20 530
转载 BLL DAL List四个参数重载方法
public List GetModelList(string strWhere, int pageNo, int pageSize, string orderBy) { DataSet ds = dal.GetList(strWhere, pageNo, pageSize, orderBy); return DataTable
2014-05-16 11:53:01 715
原创 两个a标签一个靠左一个靠右
.pinglun ul li{ height:25px; line-height:25px; margin-left:10px;width:260px;position:relative;}.NewArticleUser{color: #E75530;font-size: 12px;display: block; height: 16px;float: right;margin-top: 0;p
2014-05-16 11:23:50 30807 1
原创 p标签行高和底部背景直线设置
.left1 .right01 p{ font-size:14px; color:#666; line-height:23px;text-indent: 2em; margin:0px 10px; padding-bottom:10px; background:url(img/line1.jpg) repeat-x bottom;}
2014-05-15 17:08:46 1852
原创 首页标题数字排序列表前三变色
.left01 .pinglun ul{ margin-top:10px;} .left01 .pinglun li{ height:25px; line-height:25px; margin-left:20px; width:200px; float:left;}.left01 .pinglun li a{ font-size:14px; margin-left:10px;}
2014-05-15 15:08:58 519
原创 明星小记者头像+名字+简介
.left1 .left01{ border:1px solid #CCC; float:left; width:280px; margin-right:10px; overflow:hidden;} .left1 .right01{ border:1px solid #CCC; float:left; width:380px; height:100px;} .left1 .left0
2014-05-15 11:47:46 991
转载 利用List的Sort()、Find()、FindAll()、Exist()来解决一些问题
最近常常用到List,这个东西还真好用 因为它有下列东西:List.Sort() → 排序TList.Find() → 找出一个TList.FindAll() →找出多个TList.Exist() →判断T是否存在小弟就写个范例介绍这些东西吧..List lstPerson = new List(); lstPerson.Add(new Person(1, "puma", 10
2014-05-15 09:47:04 462
原创 图片垂直居中
.tgzx{ border:1px solid #CCC; width:250px; height:200px; display:table;} .tgzx span{display:table-cell; vertical-align:middle;text-align:center; }
2014-05-15 08:51:43 403
转载 cad2013注册出错解决办法 access violation at
打开EXE程序提示时,提示:access violation at address xxxxxxxxx 后边一大堆,这种情况下应该怎么解决呢?百度了一下,原来很简单现在把解决方法公布出来: 右击“我的电脑”。单击“属性”。 在“系统属性”中单击“高级”。 在“性能”中单击“设置”。 在“性能选项”中单击“数据执行保护”。 单击“添加”
2014-05-15 08:08:39 2447
原创 css设置登录文本框和html按扭样式
.inputs{ height:37px; line-height:37px; width:250px; border:1px solid #EAEAEA; font-size:14px;}.yanzheng{ width:100px;}.loginbtn{background:url(/img/button_lijidenglu.gif); width: 109px; height: 38p
2014-05-14 08:27:20 2625
原创 .net中Cookie基本用法
protected void Button1_Click(object sender, EventArgs e) { string span = Util.TimeToUnixTime(DateTime.Now.ToString()).ToString(); string key = MFunction.Md5New(MFunction.Md5New(spa
2014-05-13 21:32:48 452
转载 C#中null与string.Empty有啥区别
当你只定义一个str而不为其分配内存时用string str=null,但是在接下来你使用它之前必须为它赋值如str=“xxxx”也就是为它初始化而string str= string.Empty是定义和初始化放在了一起它实际是等价于string str=null;str="";具体使用时,如果你确定在使用前会给str赋值就用string str=null,否则用string str= str
2014-05-13 15:01:48 316
转载 自已的分页方法
public DataSet GetList(string strWhere, int pageNo, int pageSize, string orderBy) { StringBuilder strSql = new StringBuilder(); strSql.Append("select * ");
2014-05-13 14:37:03 426
转载 用VS2010建立空白解决方案
三层结构,会有多个项目。为了让各项目之间的关系反映在目录结构上所以要建立一个解决方案。 1.建立解决方案: 文件->新建项目->其它项目类型->Visual Studio解决方案->空白解决方案。 2.在解决方案里添加第一个项目 建立空白解决方案后,在vs2010右边的解决方案资源管理器中,可以看到刚建立的解决方案,单击选中它,然后右键选择“添加”->新建项目 ->Visu
2014-05-13 10:15:42 3514
转载 iis7调试ASP出错An error occurred on the server when processing
An error occurred on the server when processing the URL. Please contact the system administrator.If you are the system administrator please click here to find out more about this error.
2014-05-12 16:17:14 650
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人