摘要: 今天发布一个WEB项目到IIS后,发现网站内所有显示验证码的位置都显示不了,一个小红叉,好像图片不能显示的样子,但我的验证码用的最常用的那种,引用一个专门生成验证码的aspx页面,看了页面的地址也是对的,实在不解。但这个项目以前发布上来验证码是正常的,唯一的区别就是以前是直接将项目所有文件都COPY到指定的IIS目录下,而这次用了VS自带的发布功能,看来问题就出在这了。于是我照以前的方法做了一次,真的OK,突然想到那个验证码页面是从其他项目直接拖过来用的,难道不兼容?检查了他的aspx代码,果然看到了一个不起眼的区别:CodeFile,突然想到以前曾经有过页面运行报错,后来改了这个就OK了,哎 阅读全文
posted @ 2012-01-15 22:25 荣景智工 阅读(4480) 评论(0) 推荐(0) 编辑
摘要: create table #temp(ids int identity(1,1), 日期 nvarchar(10))declare @beginDate datetimedeclare @endDate datetimeset @beginDate = '2009-06-01' set @endDate = '2009-06-10'declare @i intset @i = 0while @i <=datediff(DD,@beginDate,@endDate)begininsert into #tempselect convert(nvarchar(1 阅读全文
posted @ 2011-12-28 14:59 荣景智工 阅读(281) 评论(0) 推荐(0) 编辑
摘要: <select id="s6" multiple="multiple"> <asp:Repeater ID="rpl_dept" runat="server" onitemdatabound="rpl_dept_ItemDataBound"> <ItemTemplate> <optgroup label="<%#Eval("Name") %>"> <asp:Repeater ID=" 阅读全文
posted @ 2011-12-27 15:53 荣景智工 阅读(5026) 评论(0) 推荐(1) 编辑
摘要: View Code CREATE PROCEDURE addusermodule @ModuleId_Array varChar(2000), @UserId int AS DECLARE @PointerPrev int DECLARE @PointerCurr int DECLARE @TId int Set @PointerPrev=1 set @PointerCurr=1 begin transaction Set NoCount ON delete from tests where userid=... 阅读全文
posted @ 2011-12-27 10:02 荣景智工 阅读(976) 评论(1) 推荐(0) 编辑
摘要: 对Css 和Js的引用,因为用了母板页,所以,我在aspx.cs文件中添加了引用,形式为:View Code 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 4 LiteralControl lc = new LiteralControl("<script type=\"text/javascript\" src=\"../js/jquery.js\"></script><script type=\"text/javascript\ 阅读全文
posted @ 2011-09-08 23:06 荣景智工 阅读(786) 评论(0) 推荐(0) 编辑
摘要: 注:此处“重复”非完全重复,意为某字段数据重复 HZT表结构ID intTitle nvarchar(50)AddDate datetime数据 ID Title AddDate 1 我本有心1 2008-01-17 10:27:24.827 2 我本有心1 2008-03-17 10:27:21.780 3 我本有心2 2008-05-17 10:27:30.420 4 我本有心2 2008-09-17 10:27:30.420 5 我本有心3 2008-01-20 10:27:30.420 6 我本有心3 2008-01-15 10:27:30.420 7 QQ:381584252 200 阅读全文
posted @ 2011-05-31 13:01 荣景智工 阅读(366) 评论(1) 推荐(1) 编辑
摘要: asp.net过滤HTML标签的几个函数 /**/ /// <summary>/// 去除HTML标记/// </summary>/// <param name="NoHTML">包括HTML的源码 </param>/// <returns>已经去除后的文字</returns>public static string NoHTML(string Htmlstring){ //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"<script[^&g 阅读全文
posted @ 2011-05-27 00:16 荣景智工 阅读(3410) 评论(0) 推荐(0) 编辑
摘要: 在开发的一个网站的后台中,用到这么一个功能: 1)在GridView中绑定一个CheckBox; 2)当选中/取消选中CheckBox时,激发后台表中对应数据操作或者设置对应标志; 在 protected void CheckBox1_CheckedChanged(object sender, EventArgs e){} 中,通过获取sender的parent来进行操作,代码为: 代码Code ... 阅读全文
posted @ 2010-04-12 23:28 荣景智工 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: 内容都很初级,网络上随便一查就是一堆: 实现web.config中配置数据连接 阅读全文
posted @ 2010-03-09 16:02 荣景智工 阅读(11234) 评论(0) 推荐(0) 编辑
摘要: 这个Sqlhelper类,网络上充斥的太多了。放与此,需要时查询.. 阅读全文
posted @ 2009-02-26 11:36 荣景智工 阅读(772) 评论(1) 推荐(0) 编辑