摘要: index.asp代码 scrolling="auto" frameborder="NO" border="0" framespacing="0"> frame Right 中某个页面要访问其他frame的控件: va... 阅读全文
posted @ 2013-08-21 15:25 丁焕轩 阅读(391) 评论(0) 推荐(0)
摘要: a.aspx页面打开一个弹出模式对话框b.aspx。a.aspx 页面页面代码: function SetPlay() { window.showModalDialog('SetAdvertisingTime.aspx?Rnd' + Math.random(), '', 'dialogWidth=300px;dialogHeight=180px;status=no;'); window.location.reload(); }a.aspx.cs 代码:sb.Append("parent.parent.parent.par... 阅读全文
posted @ 2013-08-21 15:15 丁焕轩 阅读(258) 评论(0) 推荐(0)
摘要: gridView AspNetPager 翻页后,你右击刷新或F5会发现弹出一个刷新页面。这是因为默认翻页都是用dopostback方式回发的。因为这时的页面已经不是原来的页面。所以会弹出提示。这种情况一般出现问题少,但如果你翻页后,点按钮弹出窗体,然后再关闭窗体,你就会发现这个问题。解决方法:UrlPaging="true" GoType="Button" SubmitButtonClass="自定义样式"1.UrlPaging="true"用页面跳转方式实现翻页。2.GoType 为button的时候也是跳转方 阅读全文
posted @ 2013-08-14 11:10 丁焕轩 阅读(243) 评论(0) 推荐(0)
摘要: 一.将按钮转成超链接样式 .GoStyle { color: #0c5fc4; background-color: #FFFFFF; border: 0px none; cursor: hand; font-family: "宋体"; font-size: 15px; } 二.多变形 ,下例为两个不 阅读全文
posted @ 2013-08-14 10:52 丁焕轩 阅读(1906) 评论(0) 推荐(0)
摘要: GridView ItemCommand中取某行某列的值方法,这里提供两个常用的:一、用CommandArgument属性取值页面如下: ' > 前台代码 后台:if (e.CommandName == "Download") { ... 阅读全文
posted @ 2013-08-13 09:47 丁焕轩 阅读(459) 评论(0) 推荐(0)
摘要: 问题:1、同一台机器上部署了两个虚拟目标,A虚拟目录里对图片进行上传删除等操作,图片上传的位置在A虚拟目录中,例如:在AdvertisingImg文件夹中。2、而B虚拟目录要求可以看到此图片。虽然是同一台机器,但直接用绝对路径查看图片是不行的。解决方法:http://localhost/A/AdvertisingImg/图片名称.后缀3、打开绝对路径图片: /// /// 下载JPG文件 /// /// 文件绝对路径路径 /// 下载的页面 /// 要保存的文件名 public static void DownloadLocalJpgFile(string strFileFullPat... 阅读全文
posted @ 2013-08-08 09:20 丁焕轩 阅读(1097) 评论(0) 推荐(0)
摘要: oracle 截取SUBSTR :截取固定字符长度SUBSTRB:截取固定字节长度例如:select substr('11你好',0,3) ,substr('11你好',0,4)from dual;结果:11你 11你好select substrb('11你好',0,3),substrb('11你好',0,4) from dual;结果:11 11你 阅读全文
posted @ 2013-06-07 13:41 丁焕轩 阅读(467) 评论(0) 推荐(0)
摘要: 由于几次在这边上传图片,都没了,所以在此引用其他地址。详情见:http://blog.csdn.net/jyhye/article/details/8298226 阅读全文
posted @ 2013-05-31 15:03 丁焕轩 阅读(167) 评论(0) 推荐(0)
摘要: C#引用js和引用的图片已经变更了,但是看不到效果,查看内容还是旧的。例:如果你引用的js位置在:http://localhost/dfk/Common/Js/HBNBaseJS.js而你调用的页面一直看不到HBNBaseJS.js文件中最新的代码。解决方法:打开一个新页面,浏览器访问:http://localhost/dfk/Common/Js/HBNBaseJS.js且进去看他的代码。然后问题解决。图片的解决方法也是一样。 阅读全文
posted @ 2013-05-29 17:28 丁焕轩 阅读(229) 评论(0) 推荐(0)
摘要: protected void gvMain_ItemDataBound(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { e.Item.Cells.RemoveAt(0); }} 阅读全文
posted @ 2013-05-28 15:10 丁焕轩 阅读(234) 评论(0) 推荐(0)