随笔分类 -  3. Asp.net

iframe 自适应高度
摘要: 阅读全文

posted @ 2013-09-12 16:44 Kevin Kim 阅读(143) 评论(0) 推荐(0)

PopUp window
摘要:javascript弹出窗口代码 window.open()方式 function ShowDialog(url) { var iWidth=300; //窗口宽度 var iHeight=200;//窗口高度 var iTop=(window.screen.height-iHeight)/2; var iLeft=(window.screen.width-iWidth)/2; window.open(url,"Detail","Scrollbars=no,Toolbar=n... 阅读全文

posted @ 2013-09-07 13:53 Kevin Kim 阅读(245) 评论(0) 推荐(0)

Asp.net 注册IIS
摘要:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i 阅读全文

posted @ 2012-03-01 14:01 Kevin Kim 阅读(115) 评论(0) 推荐(0)

15个基于Web的HTML编辑器
摘要:Ref.http://paranimage.com/15-web-based-html-editor/-End- 阅读全文

posted @ 2012-01-19 08:28 Kevin Kim 阅读(327) 评论(0) 推荐(0)

如何使用 MasterPage
摘要:如何使用 MasterPage1. 创建 MasterPage,后缀名 .master, 如 x.master. 其中用 <asp:ContentPlaceHolder /> 定义空位。如: <asp:ContentPlaceHolder ID="ContentPlaceHolder1" Runat="Server"> </asp:ContentPlaceHolder>2. 创建内容页面。 在 NewItem 对话框里选择 "select master page", 选择上一步创建的 MasterP 阅读全文

posted @ 2011-12-23 09:47 Kevin Kim 阅读(224) 评论(0) 推荐(0)

ASP.NET 弹出窗口
摘要://ASP.NET 弹出窗口//来源:http://hi.baidu.com/jordan51341/blog/item/1ab4f9ca8bba1243f21fe7da.html////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// javascript弹出窗口封装类 /// </summary> public static class JSCommon { / 阅读全文

posted @ 2011-12-23 09:47 Kevin Kim 阅读(442) 评论(0) 推荐(0)

Iframe and Master Page
摘要:http://blog.csdn.net/lisenustc/archive/2009/12/02/4926591.aspx 阅读全文

posted @ 2011-12-23 09:41 Kevin Kim 阅读(170) 评论(0) 推荐(0)

File delete
摘要:/// <summary> /// 用递归方法删除文件夹目录及文件 /// </summary> /// <param name="dir">带文件夹名的路径 </param> public void DeleteFolder(string dir) { if (Directory.Exists(dir)) //如果存在这个文件夹删除之 { foreach (string d in Directory.GetFileSystemEntries(dir)) { if (File.Exists(d)) File.Delete(d) 阅读全文

posted @ 2011-06-09 13:47 Kevin Kim 阅读(166) 评论(0) 推荐(0)

Fckeditor
摘要:1、传入客房描述,将客房描述中所有图片的src取出,放入集合中,并返回集合 private static List<string> GetInputImgUrls(string HTMLStr) { List<string> pics = new List<string>(); string str = string.Empty; Regex r1 = new Regex(@"<input/s+[^>]*/s*src/s*=/s*([']?)(?<url>/S+)(/S[']?)[^>]*>&qu 阅读全文

posted @ 2011-06-09 13:15 Kevin Kim 阅读(168) 评论(0) 推荐(0)

重复提交
摘要:来源:http://dev.csdn.net/htmls/85/85046.html重复提交、重复刷新、防止后退的问题以及处理方式一。前言你在任何一个比较专业的BBS都会看到这样的问题,即使你Google一下,也会发现有很多的人在关注和询问,但大家给出的解决方法却都是千差万别,(有的人主张采用脚本来解决;有的则想重定向到别的页面;有的则将此问题提升到Token的角度)为什么会有如此大的差异呢?二。问题场景首先,我们应该先了解为什么要处理这样的问题?或者专业一点就是它适合的场景是什么?(似乎只有人来问没有人来解释)1。重复提交、重复刷新的场景重复提交、重复刷新都是来解决系统重复记录的问题。也就是 阅读全文

posted @ 2011-05-05 14:34 Kevin Kim 阅读(2434) 评论(1) 推荐(0)

Asp.net exception
摘要:来源:http://topic.csdn.net/u/20100421/13/ee54f1d7-f7e7-4de3-b4f6-da0fa5b18047.htmlASP.NET的错误处理机制2008-09-16 11:48对Web应用程序来说,发生不可预知的错误和异常在所难免,我们必须为Web程序提供错误处理机制。当错误发生时,我们必须做好两件事情:一是将错误信息记录日志,发邮件通知网站维护人员,方便技术人员对错误进行跟踪处理;二是以友好的方式提示最终用户页面发生了错误,而不能将未处理的错误信息显示给用户。 让我们想想,ASP.NET为我们提供了几种错误处理机制?如果同时使用他们是不是有一定的优 阅读全文

posted @ 2011-05-04 14:20 Kevin Kim 阅读(759) 评论(0) 推荐(0)

多国语
摘要:protected void btnCN_Click(object sender, EventArgs e) { System.Resources.ResourceManager rm = new System.Resources.ResourceManager("WebApplication1.Language.Resource1", System.Reflection.Assembly.GetExecutingAssembly()); this.lblTest.Text=rm.GetString("lblTest"); } 阅读全文

posted @ 2011-04-29 14:43 Kevin Kim 阅读(184) 评论(0) 推荐(0)

FCKeditor
摘要:转载自吴红森最终编辑吴红森================= 网上摘录的方法:========================FCKeditor是目前最好的html文本编辑器,如果还不明白的话看了下图就知道了效果图:那么为什么说是FCKeditor的冰冷之心呢?这不是哗众取宠,主要是说它使用起来有点麻烦,下文就详细说明如何搞定这玩意儿。1.FCKeditor的官方网站是:http://www.fckeditor.net/download目前最新的FCKeditor 2.4.2版本。请在此页下载:http://sourceforge.net/project/showfiles.php?group 阅读全文

posted @ 2011-04-18 10:48 Kevin Kim 阅读(369) 评论(0) 推荐(0)

WebSite And WebApplication
摘要:WebSite 는 파일 기반 이고.WebApplication 은 웹응용 프로그램 기반이다.WebSite 인 경우,이식성이 강하다(충돌이 적고,배포가 쉽다.) 阅读全文

posted @ 2011-04-17 10:21 Kevin Kim 阅读(141) 评论(0) 推荐(0)

GrdView分页
摘要:要实现GrdView分页的功能。操作如下:1、更改GrdView控件的AllowPaging属性为true。2、更改GrdView控件的PageSize属性为 任意数值(默认为10)3、更改GrdView控件的PageSetting->Mode为Numeric等(默认为Numeric)该属性为分页样式。GridView属性设置好了,从页面上也能看到分页样式。现在开始实现分页的功能:1、在<<asp:GridView ID=......>后添加,OnPageIndexChanging="GridView1_PageIndexChanging"2、在对应 阅读全文

posted @ 2011-04-13 10:21 Kevin Kim 阅读(178) 评论(0) 推荐(0)

导航