摘要: 对于win7 win8 浏览器下的兼容性1、在主页中加入<link id="gjmainstyle" rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 8]> <link id="linkie" rel="stylesheet" href="css/iemain.css" type="text/css" /> < 阅读全文
posted @ 2013-05-07 14:00 litao6664 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //添加301重定向代码 string strURL = "www.comeeu.com"; if (Request.Url.DnsSafeHost != strURL) { Response.Clear(); Response.StatusCode = 301; Response.Status = "301 MovedPermanently"; Response.AddHeader("Location", "http://" + strURL); ... 阅读全文
posted @ 2013-04-25 15:44 litao6664 阅读(121) 评论(0) 推荐(0) 编辑
摘要: /**/ /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径(物理路径)</param> /// <param name="thumbnailPath">缩略图路径(物理路径)</param> /// <param name="width">缩略图宽度</param> /// <param name="height&q 阅读全文
posted @ 2013-03-26 16:14 litao6664 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 基本主要是用于在window系统的机器上,编译学习objective c语言,最好还是有条件的话使用xcode在苹果机器上使用。下面详细介绍所需要部署的每一个步骤:1、所需要的文件可以去下面地址下载:http://www.gnustep.org/experience/Windows.html 其中主要包括如下几个文件: (1)gnustep-msys-system-0.30.0-setup.exe (2)gnustep-core-0.30.0-setup.exe (3)gnustep-cairo-0.22.0-setup.exe (4)gnus... 阅读全文
posted @ 2012-07-25 14:14 litao6664 阅读(1512) 评论(2) 推荐(1) 编辑
摘要: 后台添加如下即可:ScriptManager.RegisterStartupScript(this,this.GetType(),DateTime.Now.Ticks.ToString(), "<script>alert('"+"修改成功"+"');window.location.href='"+Request.UrlReferrer.ToString().Replace("AddMsgReplay.aspx","SubMyMessage.aspx")+&qu 阅读全文
posted @ 2012-05-31 11:10 litao6664 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.在前台页面中需要引用thickbox所需的脚本文件和css样式文件,如下所示:<scripttype="text/javascript"src="js/thickbox.js"></script> <scripttype="text/javascript"src="js/jquery-1.4.2.js"></script> <linkrel="stylesheet"href="CSS/thickbox.css"type 阅读全文
posted @ 2012-04-09 17:24 litao6664 阅读(1687) 评论(2) 推荐(0) 编辑
摘要: 使用微软自带的上传控件在Chrome下会显示不正常,所以可以自定义一个上传控件来达到兼容的目的:1、首先需要引用JQuery脚本,在页面的<head>与</head>之间插入如下代码:<scripttype="text/javascript"src="js/jquery-1.5.2.js"></script>2、首先在前台我们这样设置,如下所示,将下面的这段代码放到页面的任意位置 <%--Uploadfilecontent--%><divstyle="width:728px;fl 阅读全文
posted @ 2012-02-22 10:48 litao6664 阅读(2704) 评论(8) 推荐(3) 编辑
摘要: <%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="TestMetroMenu.aspx.cs"Inherits="MetroWeb.TestMetroMenu"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">< 阅读全文
posted @ 2012-01-13 17:29 litao6664 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 前台:<htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title></title><linkrel="stylesheet"type="text/css"href="css/styles.css"/><scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min. 阅读全文
posted @ 2011-12-06 13:44 litao6664 阅读(973) 评论(2) 推荐(1) 编辑
摘要: 最主要就是在后台重写render事件: protected override void Render(HtmlTextWriter writer) { foreach (GridViewRow row in this.GridFreight.Rows) { if (row.RowType == DataControlRowType.DataRow) { row.Attributes["onclick"] = ClientScript.GetPostBackEventReference(this.GridFreight, "Select$" + r... 阅读全文
posted @ 2011-11-23 14:44 litao6664 阅读(173) 评论(0) 推荐(0) 编辑