随笔 - 714  文章 - 0  评论 - 12812  阅读 - 301万 
11 2006 档案
应用Url重写时CSS引用问题
摘要:今晚,将上次的Demo移到毕设中的时候,发现CSS引用不到,想了大半天才发现,原来是user.aspx被我重写成user/user.aspx时,发生目录引用的问题,解决的方法就是用在引用CSS时加多"../",在解决了这个问题后,发现另一个问题,页面中引用了validatacode.aspx验证码页,因为符合正则表达式,所以这个也被改写了(研究了十来分钟才发现的),虽然validatacode没有... 阅读全文
posted @ 2006-11-28 21:44 路过秋天 阅读(2910) 评论(0) 推荐(0) 编辑
asp.net 2.0 简单实现url重写
摘要:今天,群里有人问我关于Url重写的问题,想这重写,记得国庆期间看过相关文章,msdn介绍也看过,大概就三种方法,最常用的就是用微软提供的dll文件,今天,把我dll引用了一下,按着说明配置了一下文件,结果出现不少问题,调试时找不到.cs源代码,不知是啥问题,可能dll放的太久,生秀了..-_-.#,只好上网再搜一下新的dll,突然发现2.0里的新方法!花了半个晚上做一个demo!以下是demo源代... 阅读全文
posted @ 2006-11-28 00:16 路过秋天 阅读(1301) 评论(0) 推荐(0) 编辑
Cookie问题(烦了三天)
摘要:public void SetCookie(string userName, string role,string cookieValueName) {FormsAuthentication.FormsCookieName FormsAuthenticationTicket myTick = new FormsAuthenticationTicket(1, userName,... 阅读全文
posted @ 2006-11-22 17:43 路过秋天 阅读(1490) 评论(1) 推荐(0) 编辑
GridView批量删除页面最后N条数据时自动翻到上一页问题
摘要:删除选中数据protected void lbtnDelSeleted_Click(object sender, EventArgs e) { CQ_Music myMusic=new CQ_Music();//这里是一个对音乐操作的类 for (int i = 0; i < gvMusic.Rows.Count; i++) { ... 阅读全文
posted @ 2006-11-20 20:47 路过秋天 阅读(1221) 评论(0) 推荐(0) 编辑
GridView全选
摘要:两个CheckBox一个在header一个在item(chbItem)设置header的CheckBox的AutoPostBack为True引发以下事件 protected void chbAll_CheckedChanged(object sender, EventArgs e) { if (((CheckBox)sender).Checked)//选中当前页面所有行 ... 阅读全文
posted @ 2006-11-20 19:57 路过秋天 阅读(2536) 评论(2) 推荐(0) 编辑
取存储过程output的取
摘要:sql存储过程定义字段@RetValue int outas select @RetValue=xxxx from .......cs代码:SqlCommand com = new SqlCommand("存储过程名",con对象);//建立SQL命令com.CommandType = CommandType.StoredProcedure;//指定使用SQL存储过程com.Parameter... 阅读全文
posted @ 2006-11-16 16:49 路过秋天 阅读(2327) 评论(4) 推荐(1) 编辑
WebConfig常用配置文件说明
摘要:这里删除不常用的,只留下节点 --> --> ... 阅读全文
posted @ 2006-11-16 16:25 路过秋天 阅读(4281) 评论(1) 推荐(3) 编辑
GridView双击某行弹出一新窗口
摘要:只需设定此事件! protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { int count = GridView1.Rows.Count; string ID = ""; for (int i = 0; i < count; i++) ... 阅读全文
posted @ 2006-11-16 16:01 路过秋天 阅读(4151) 评论(0) 推荐(0) 编辑

路过秋天
点击右上角即可分享
微信分享提示