摘要:
最小宽度.minWidth{min-width:970px;_width:expression((document.documentElement.clientWidth||document.body.clientWidth)<970?"970px":"");}左边栏#left{ height:10... 阅读全文
posted @ 2014-08-18 17:39
linyongqin
阅读(124)
评论(0)
推荐(0)
摘要:
一、匆匆带过的概念关于CSS中层级z-index的定义啊什么的不是本文的重点,不会花费过多篇幅详细讲述。这里就简单带过,z-index伴随着层的概念产生的。网页中,层的概念与photoshop或是flash中层的概念是一致的。熟悉photoshop或是flash的应该知道,层级越高(图层越靠上),越... 阅读全文
posted @ 2014-08-18 17:09
linyongqin
阅读(138)
评论(0)
推荐(0)
摘要:
父页面 -------------------------------------- 华丽的分隔线 --------------------------------------子页面 阅读全文
posted @ 2014-08-18 16:28
linyongqin
阅读(128)
评论(0)
推荐(0)
摘要:
1、将图片转换为块级对象 配置 img为“display:block;”。在本例中添加一组CSS代码:“#sub img {display:block;}”。 2、配置 图片的垂直对齐方式 配置 图片的vertical-align属性为“top,text-top,bottom,text-b... 阅读全文
posted @ 2014-08-18 16:26
linyongqin
阅读(1132)
评论(0)
推荐(0)
摘要:
/****************************index.html***********************************/菜单 Demo 首页 学院概况 学系设置 师资团队 教学管理 ... 阅读全文
posted @ 2014-08-18 16:25
linyongqin
阅读(135)
评论(0)
推荐(0)
摘要:
table里td设置width,firefox等浏览器里显示正常,ie里则无效。style="width:...px;"也是一样的效果。要让ie也有效,必须需要在table里再设置一下table-layout: fixed,如这样ie里td的width才生效。使用,如果表格的第一行有跨多列的单元格,... 阅读全文
posted @ 2014-08-18 16:23
linyongqin
阅读(352)
评论(0)
推荐(0)
摘要:
首页 公司简介 产品阵容 产品视频 资源下载 新闻资讯 客户反馈 联系我们 #footer{ width:1008px; padding:15px 0; text-align:center; backg... 阅读全文
posted @ 2014-08-18 16:22
linyongqin
阅读(167)
评论(0)
推荐(0)
摘要:
在c# / ASP.net中我们可以通过使用DataTime这个类来获取当前的时间。通过调用类中的各种方法我们可以获取不同的时间:如:日期(2008-09-04)、时间(12:12:12)、日期+时间(2008-09-04 12:11:10)等。//获取日期+时间DateTime.Now.ToStr... 阅读全文
posted @ 2014-08-18 16:20
linyongqin
阅读(365)
评论(0)
推荐(0)
摘要:
protected void Page_Load(object sender, EventArgs e){ //修改head标签中的title标签属性 Page.Header.Title = "编程改变内容页标题"; //修改head标签包含的其它标签属性,间接修改了页面背景颜色 Style... 阅读全文
posted @ 2014-08-18 16:17
linyongqin
阅读(226)
评论(0)
推荐(0)
摘要:
标准控件类 型前 缀示 例AdrotatoradrtadrtTopAdBulletedListblstblstCityButtonbtnbtnSubmitCalendarcalcalMettingDatesCheckBoxchkchkBlueCheckBoxListchklchklFavColors... 阅读全文
posted @ 2014-08-18 16:16
linyongqin
阅读(177)
评论(0)
推荐(0)
摘要:
pic.aspx文件: pic.aspx.cs文件: using System.Drawing;... 阅读全文
posted @ 2014-08-18 16:09
linyongqin
阅读(161)
评论(0)
推荐(0)
摘要:
1、 为什么设置了DataFormatString没有效果?不要忽略BoundField的两个重要属性HtmlEncode和ApplyFormatInEditMode。HtmlEncodeGridView 使用的 BoundField 与 DataGrid 使用 BoundColumn 不同,Bou... 阅读全文
posted @ 2014-08-18 16:00
linyongqin
阅读(227)
评论(0)
推荐(0)
摘要:
Eval( " ")和Bind( " ") 这两种一个单向绑定,一个双向绑定,bind是双向绑定,但需数据源支持ASP.NET 2.0改善了模板中的数据绑定操作,把v1.x中的数据绑定语法DataBinder.Eval(Container.DataItem, fieldname)简化为Eval(fi... 阅读全文
posted @ 2014-08-18 15:59
linyongqin
阅读(231)
评论(0)
推荐(0)
摘要:
\ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个后向引用、或一个八进制转义符。^ 匹配输入字符串的开始位置。如果设置了 RegExp 对象的Multiline 属性,^ 也匹配 ’\n’ 或 ’\r’ 之后的位置。$ 匹配输入字符串的结束位置。如果设置了 RegExp 对象的Multili... 阅读全文
posted @ 2014-08-18 15:58
linyongqin
阅读(623)
评论(0)
推荐(0)
摘要:
设置Cookies方法一:设置Cookies方法二:Asp.Net中Response.Cookies.Remove 无法删除COOKIE的问题解决方法登陆功能经常需要使用Cookie来存储登陆信息,可是在开发过程中,经常发现cookie无法删除的问题。删除的代码无非就是找到Cookie并删除掉。但是... 阅读全文
posted @ 2014-08-18 15:56
linyongqin
阅读(133)
评论(0)
推荐(0)
摘要:
数据表:表名:Tb_Column表结构(所有字段非空):Column_IDint主键(注:非标识)Column_Namenvarchar(50)分类名称Parent_IDint父分类ID(默认值0)Column_Pathnvarchar(1000)分类路径Column_Depthint分类深度(默认... 阅读全文
posted @ 2014-08-18 15:53
linyongqin
阅读(225)
评论(0)
推荐(0)
摘要:
hdList.aspx 文件 ... 阅读全文
posted @ 2014-08-18 11:50
linyongqin
阅读(180)
评论(0)
推荐(0)
摘要:
/******************* 华丽的分隔线 *******************/ /// 根据列字段合并GridView /// GridView合并行 /// Grid控件 /// 列索引 public ... 阅读全文
posted @ 2014-08-18 11:47
linyongqin
阅读(141)
评论(0)
推荐(0)
摘要:
protected void Page_Load(object sender, EventArgs e) { Response.Write(HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"]+"")... 阅读全文
posted @ 2014-08-18 11:43
linyongqin
阅读(277)
评论(0)
推荐(0)
摘要:
/******************** TelPhoneFun.aspx ********************/ ... 阅读全文
posted @ 2014-08-18 11:42
linyongqin
阅读(255)
评论(0)
推荐(0)
摘要:
实现原理:GridView在ASP.NET中最终转为HMTL的表格显示表头。 在GridView创建行表头行时: e.Row.RowType == DatacontrolRowType.Header 清除掉旧的表头, 再重新拼接新的表头.TableHeaderCell thc = new Table... 阅读全文
posted @ 2014-08-18 11:37
linyongqin
阅读(711)
评论(0)
推荐(0)
摘要:
Default.aspxExcel文件: 工作表名称: Default.aspx.cs //上传Excel protected void btnExcel_Click(object sender, EventArgs e) { ... 阅读全文
posted @ 2014-08-18 11:13
linyongqin
阅读(125)
评论(0)
推荐(0)
摘要:
public void ToExcel(System.Web.UI.Control ctl, string FileName) { HttpContext.Current.Response.Charset = "UTF-8"; ... 阅读全文
posted @ 2014-08-18 11:10
linyongqin
阅读(154)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace ConsoleString{ cla... 阅读全文
posted @ 2014-08-18 10:42
linyongqin
阅读(95)
评论(0)
推荐(0)
摘要:
//字符串转换为整数数字 //性能:Int32.TryParse()>Int32.Parse()>Convert.ToInt32() string myString = null; int myInt = 0;... 阅读全文
posted @ 2014-08-18 10:41
linyongqin
阅读(72)
评论(0)
推荐(0)
摘要:
public class ParentClass //public seale class ParentClass 使用seale修饰符实现密封类,不能被继承 { public ParentClass() { Console.WriteL... 阅读全文
posted @ 2014-08-18 10:29
linyongqin
阅读(129)
评论(0)
推荐(0)
摘要:
public abstract class ParentClass { public ParentClass() { Console.WriteLine("父类构造函数"); } public abstrac... 阅读全文
posted @ 2014-08-18 10:26
linyongqin
阅读(74)
评论(0)
推荐(0)
摘要:
interface IFace1 { void Say(); void Hello(); } interface IFace2 { void Say(); void Goodbye(); } /// ... 阅读全文
posted @ 2014-08-18 10:23
linyongqin
阅读(182)
评论(0)
推荐(0)
摘要:
委托是一种特殊的对象类型,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。 public delegate void SayDelegate(string name); //定义委托 public class ClassPeople { publ... 阅读全文
posted @ 2014-08-18 10:22
linyongqin
阅读(109)
评论(0)
推荐(0)
摘要:
#warning"警告信息"#error"错误信息"#region代码块Console.WriteLine("代码块内容");#endregion 阅读全文
posted @ 2014-08-18 10:21
linyongqin
阅读(58)
评论(0)
推荐(0)
摘要:
枚举类型是一种的值类型,它用于声明一组命名的常数。(1)枚举的声明:枚举声明用于声明新的枚举类型。访问修辞符enum 枚举名:基础类型{枚举成员 }基础类型必须能够表示该枚举中定义的所有枚举数值。枚举声明可以显式地声明 byte、sbyte、short、ushort、int、uint、long 或 ... 阅读全文
posted @ 2014-08-18 10:20
linyongqin
阅读(75)
评论(0)
推荐(0)
摘要:
包含MD5、SHA1、DES加密和解密,Base64编码解码。using System;using System.Web.Security;using System.Security.Cryptography;using System.Text;using System.IO; public cla... 阅读全文
posted @ 2014-08-18 10:19
linyongqin
阅读(127)
评论(0)
推荐(0)
摘要:
关于在同一个页面中使用Gridview控件的时候发现updaeting事件无法被服务器所响应,看来它的错误报警然后查询了部分资料现在将整理的解决方法总结如下:点击update 事件无法响应原因出在回发或回调参数无效。在配置中使用 或在页面中使用 启用了事件验证。出于安全目的,此功能验证回发或回 ... 阅读全文
posted @ 2014-08-18 10:17
linyongqin
阅读(238)
评论(0)
推荐(0)
摘要:
测试至诚书院网站,发现kindeditor富文本编辑器不能上传超过4M的文件,最后查看火狐Firebug发现了错误提示“超过了最大请求长度” 阅读全文
posted @ 2014-08-18 10:15
linyongqin
阅读(578)
评论(0)
推荐(0)
摘要:
----------------------------------HTML文件---------------------------------- ----... 阅读全文
posted @ 2014-08-18 10:14
linyongqin
阅读(98)
评论(0)
推荐(0)
摘要:
在IIS上部署网站时遇到这样一个问题:“HTTP 错误 500.0 - Internal Server Error调用 LoadLibraryEx 失败,在 ISAPI 筛选器 "C:\Program Files (x86)\Sybase\PowerDynamo\win32\dyisa03.dll"... 阅读全文
posted @ 2014-08-18 10:10
linyongqin
阅读(490)
评论(0)
推荐(0)
摘要:
/************************************** 从1月1号开始排 **************************************/declare @date datetime,@startDate varchar(10)set @date='2013-1... 阅读全文
posted @ 2014-08-18 10:06
linyongqin
阅读(125)
评论(0)
推荐(0)
摘要:
关键点就是。。。在页面的C#代码中,当异步要求的操作完成后,加上这么一句来回调jsScriptManager.RegisterStartupScript(this.panel2, this.GetType(), "", "alert('ok!');", true);panel2就是那个updatep... 阅读全文
posted @ 2014-08-18 09:57
linyongqin
阅读(112)
评论(0)
推荐(0)
摘要:
用户控件类名:WebUserControl属性:private DataTable dt //这里用public protected private都行,关键是ViewState是Protected的,因此需要定义下面的方法来读取或者访问方法:public DataTable mydt{ get {... 阅读全文
posted @ 2014-08-18 09:54
linyongqin
阅读(127)
评论(0)
推荐(0)
摘要:
对于asp.net,默认只允许上传4M文件,增加如下配置,一般可以自定义最大文件大小.//executionTimeout預設是 90 秒,你要改的話:executionTimeout = "180"Asp.net支持的最大上传文件大小同事碰到一个问题,用DataSet提交一个比较大的数据集时出现异... 阅读全文
posted @ 2014-08-18 09:52
linyongqin
阅读(168)
评论(0)
推荐(0)
摘要:
ddl_YXSM.Items.FindByText(Str).Selected = true;//BookingKyxw.aspx 文件 //BookingKyxw.aspx.cs 文件 //绑定活动预约参与对象信息 private void GetActivityPar... 阅读全文
posted @ 2014-08-18 09:51
linyongqin
阅读(81)
评论(0)
推荐(0)

浙公网安备 33010602011771号