摘要: [一篮饭特稀原创,转载请注明出处http://www.cnblogs.com/wanghafan/archive/2012/06/08/2541247.html ]下载http://u.115.com/file/f56ddf3a7e安装解压WindowBuilder.rar覆盖到eclipse相应目录打开eclipse->窗口->首选项->java->构建路径->类路径变量中新建一个变量,名为"ECLIPSE_HOME",值为eclipse重启eclipse使用新建一个类,继承随便一个容器即可。从项目树中找到这个类的java文件,右键点击ope 阅读全文
posted @ 2012-06-08 09:03 一篮饭特稀 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 1.把/Files/wanghafan/CodeFolding.rar解压到..\eclipse\plugins2.重启eclipse3.首选项--java--编辑器--折叠,如图设置参数4.可以修改[start]为#region,[end]为#endregion5.应用后,点击快捷键Ctrl+小键盘/,进行切换 阅读全文
posted @ 2012-05-31 10:12 一篮饭特稀 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 换行字数Window-Preferences-Java-Code Style-Formatter-Edit-Line Wrapping-General settings-Maximum line width:100删除空行1.打开源码编辑器2.使用快捷键Ctrl+f3.在Find输入框中输入:^\s*\n4.Replace With输入框的值为空5.在【Options】选中的"Regular expressions"6.点击【Replace All】按钮自动完成1. window→Preferences→java→Editor→Content Assist→Auto Act 阅读全文
posted @ 2012-05-28 22:08 一篮饭特稀 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.模拟器横竖屏切换快捷键Ctrl+F112.写法: android:id="@+id/button1"android:text="@+text/Button"3.如果在运行Intent intent=new Intent(GPSActivity.this, ColorActivity.class); startActivity(intent);过程中报错,很可能是因为Mainfest.xml文件中未添加ColorActivity.xml文件为Activity 阅读全文
posted @ 2012-05-28 16:39 一篮饭特稀 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 第一:搭建JAVA平台1.下载JDK1.6http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe第二: 运行JAR文件运行JAR文件有2种方式a.直接运行打开方式→ 选择程序→浏览→选择javaw(C:\Program Files\Java\jdk1.6.0_10\bin路径下找)打开b.配置环境变量①.我的电脑→右键→属性→高级→环境变量找到path,编辑,在最末尾添加jdk路径;C:\Program Files\Java\ 阅读全文
posted @ 2012-05-25 15:35 一篮饭特稀 阅读(135) 评论(0) 推荐(0) 编辑
摘要: [一篮饭特稀原创,转载请注明出处http://www.cnblogs.com/wanghafan/archive/2012/05/18/2508113.html]四舍五入View Code 1 public static decimal Round(decimal d, decimal unit)2 {3 decimal rm = d % unit;4 decimal result = d - rm;5 if (rm >= unit / 2)6 result ... 阅读全文
posted @ 2012-05-18 17:22 一篮饭特稀 阅读(2658) 评论(1) 推荐(0) 编辑
摘要: Page_preInit (常用)Page_Init (常用) 主要完成页面初始化时运行(只运行一次)Page_InitCompletePage_PreLoadpage_Load (常用) 页面读放内存时运行,每次都会初触发page_LoadCompleteButton_Clickpage_PreRender(常用)Page_PreRenderCompletePage_SaveStateComplete protected void Page_PreInit(object sender, EventArgs e) { Response.Write("我执行了Page_PreInit& 阅读全文
posted @ 2012-05-10 11:19 一篮饭特稀 阅读(259) 评论(1) 推荐(0) 编辑
摘要: 单个文件的上传:保存到上传服务器指定目录: FileUpload1.Save(Server.MapPath("/upfiles/upload/") +FileUpload1.FileName);得到上传文件的文件名(含上传本地路径):FileUpload1.PostedFile.FileName;得到上传文件的大小:FileUpload1.PostedFile.ContentLength;得到上传文件上传类型:FileUpload1.PostedFile.ContentType;得到上传文件扩展名:System.IO.Path.GetExtension(FileUpload 阅读全文
posted @ 2012-05-10 11:18 一篮饭特稀 阅读(2024) 评论(0) 推荐(2) 编辑
摘要: FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),使你在web上可以使用类似微软Word 的桌面文本编辑器的许多强大功能。FCKeditor目前的最新版本是2.6.3,本文以FCKeditor2.6.3介绍在asp.Net中的配置方法。FCKEditor官方下载地址:http://www.fckeditor.net/download在官方网站下载FCKeditor 2.6.3: FCKeditor_2.6.3.zipFCKeditor.Net :FCKeditor.Net_2.6.3.zip配置方法如下:一、删除不必要的文件从官方下载下来的FCKEditor2. 阅读全文
posted @ 2012-05-10 11:17 一篮饭特稀 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1 <asp:Repeater ID="DataListTolData" runat="server"> 2 <HeaderTemplate> 3 <table name="mitab" border="1" align="center" style="border-collapse:collapse;width:98%;word-break: break-all;"> 4 <tr class="Toptr_bg" 阅读全文
posted @ 2012-05-10 11:16 一篮饭特稀 阅读(246) 评论(0) 推荐(0) 编辑