随笔分类 -  .net web技术

摘要:http://visualjquery.com/1.1.2.html网址为jquery 资料 阅读全文
posted @ 2008-02-21 15:02 似水流年-johnhuo 阅读(121) 评论(0) 推荐(0) 编辑
摘要:1 (1)面向对象的语言具有__继承性_性、_封装性_性、_多态性 性。 (2)能用foreach遍历访问的对象需要实现 _ IEnumerable 接口或声明_ GetEnumerator 方法的类型。1.c#中的三元运算符是__?:__ 2.当整数a赋值给一个object对象时,整数a将会被__装箱___? 3.类成员有__3__种可访问形式? 4.public static const int A=1;这段代码有错误么?是什么? const成员都是static所以应该去掉static 5.float f=-123.567F; int i=(int)f; i的值现在是_-123____? 阅读全文
posted @ 2008-02-21 14:45 似水流年-johnhuo 阅读(566) 评论(0) 推荐(0) 编辑
摘要:.Net 提供了两个Cookie类:System.Web.HttpCookie 类 和 System.Net.Cookie 类对应的有两个Cookie 集合类System.Web.HttpCookieCollection 类 和 System.Net.CookieCollection 类我们一般来理解他们的区别就是下面简单的一句:System.Web 命名空间下的是给服务器段用的,System.Net 是给客户端程序用的。实际上不止这点区别:下面我们来对比这两个Cookie类的属性如下,这些属性都是Copy自MSDN中文版的说明文档: System.Web.HttpCookie 类 Syste 阅读全文
posted @ 2007-12-24 11:07 似水流年-johnhuo 阅读(185) 评论(0) 推荐(0) 编辑
摘要:1 使用1.1创建项目 运行Iron Speed Designer 4.2.2,出现下面的界面: 图2-1点击create a new application按钮,如下图: 图2-2点击以后出现下面的向导界面,下面的界面告诉我们创建一个项目需要5个步骤,分别是为你的应用程序命名,选择页面样式,选择数据库,选择表或视图,编译和运行你的应用程序,如下: 图2-3点击 按钮,出现下面界面: 图2-4在 部分是选择保存项目的路径,我们可以自己决定。在 部分,从左到右分别是选择开发语言(code language),选择.net framework的版本,编译器选项,SQL的生成形式的选择(SQL St 阅读全文
posted @ 2007-08-28 11:14 似水流年-johnhuo 阅读(175) 评论(0) 推荐(0) 编辑
摘要:来新公司半年了。一直做.net c#开发,加上以前做.net 2年的开发经验,.net可以说是比较熟悉的东西了。思考一下公司用过的框架,可以说都是微软提倡的那种多层架构的模式即modal+dal+bll+common+web这种,新公司现在的框架应该说比较完善,把微软企业库加了进来。但总体架构还是那样了。前两天公司培训了一下java,java以前学过有段时间,并不陌生。公司是采用spring+struts这种轻量级架构,也是modal+dal+bll+common+web这种多层架构,相对.net,配置比较烦琐,开发比较累而已,不过如果熟悉以后,可以想象,跟.net大同小异而已了。 阅读全文
posted @ 2007-08-14 11:36 似水流年-johnhuo 阅读(278) 评论(0) 推荐(0) 编辑
摘要:usingSystem; namespaceShellSorter { publicclassShellSorter { publicvoidSort(int[]list) { intinc; for(inc=1;inc<=list.Length/9;inc=3*inc+1); for(;inc>0;inc/=3) { for(inti=inc+1;i<=list.Length;i+=inc) { intt=list[i-1]; intj=i; while((j>inc)&&(list[j-inc-1]>t)) { list[j-1]=list[j-inc-1]; j-=inc 阅读全文
posted @ 2007-06-25 13:35 似水流年-johnhuo 阅读(161) 评论(0) 推荐(0) 编辑
摘要:usingSystem; namespaceInsertionSorter { publicclassInsertionSorter { publicvoidSort(int[]list) { for(inti=1;i<list.Length;i++) { intt=list[i]; intj=i; while((j>0)&&(list[j-1]>t)) { list[j]=list[j-1]; --j; } list[j]=t; } } } publicclassMainClass { publicstaticvoidMain() { int[]iArrary=newint[ 阅读全文
posted @ 2007-06-25 13:33 似水流年-johnhuo 阅读(125) 评论(0) 推荐(0) 编辑
摘要:usingSystem; namespaceBubbleSorter { publicclassBubbleSorter { publicvoidSort(int[]list) { inti,j,temp; booldone=false; j=1; while((j<list.Length)&&(!done)) { done=true; for(i=0;i<list.Length-j;i++) { if(list[i]>list[i+1]) { done=false; temp=list[i]; list[i]=list[i+1]; list[i+1]=temp; } } j+ 阅读全文
posted @ 2007-06-25 13:32 似水流年-johnhuo 阅读(179) 评论(0) 推荐(0) 编辑
摘要:usingSystem; namespaceSelectionSorter { publicclassSelectionSorter { privateintmin; publicvoidSort(int[]list) { for(inti=0;i<list.Length-1;i++) { min=i; for(intj=i+1;j<list.Length;j++) { if(list[j]<list[min]) min=j; } intt=list[min]; list[min]=list[i]; list[i]=t; } } } publicclassMainClass { public. 阅读全文
posted @ 2007-06-25 13:30 似水流年-johnhuo 阅读(143) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0"?><!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的 “网站”->“Asp.Net 配置”选项。 设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 \Windows\Microsoft.Net\Framework\v2.x\Config 中--><configuration xmlns="http://schemas.microsoft.com/.NetConfi 阅读全文
posted @ 2007-06-15 10:27 似水流年-johnhuo 阅读(359) 评论(0) 推荐(0) 编辑
摘要:添加以下代码到你的网站!<a href="msnim:chat?contact=yourname@msn.com" target="_blank" >MSN即时交谈</a>MSN即时交谈 (测试) 阅读全文
posted @ 2007-06-15 10:21 似水流年-johnhuo 阅读(191) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/ma/archive/2007/02/25/1514359.aspx 阅读全文
posted @ 2007-05-21 16:29 似水流年-johnhuo 阅读(130) 评论(0) 推荐(0) 编辑
摘要:这两天做项目时,我负责设计一个模板页。UI人员做的静态页面没有问题,但是我转换为.aspx的格式就发现css,javascipt已经失效。后面经过同事帮忙才知道,css/javascipt应该用utf-8格式保存就ok了 阅读全文
posted @ 2007-04-30 08:25 似水流年-johnhuo 阅读(147) 评论(0) 推荐(0) 编辑
摘要:前两天我的rose突然不能使用了。点击rose.exe会提示rose.exe不能找到入口,程序不能定位到license.dll的警告。我非常的郁闷,我开始以为是破解文件的问题,就又重新破解了一遍关于rational rose的破解可以参考我的另一篇文章http://blog.csdn.net/hliq5399/archive/2007/04/25/1583795.aspx可是还是不行。我就怀疑是windows的系统更新搞的,于是我郁闷的还原了系统,可是,rose正常使用了几天后,再次出现了相同的问题,而且这个时候,我一直关闭了系统更新。我真有点晕。于是我就把license.dll从common 阅读全文
posted @ 2007-04-30 08:15 似水流年-johnhuo 阅读(266) 评论(0) 推荐(0) 编辑
摘要:该错误的详细提示信息为:回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否来源于最初呈现这些事件的服务器控件。目前为止遇到的出现情况有两种:一是Form嵌套,一个页面只能有一个Form,仔细检查代码就可以解决。二是在下拉菜单中使用ajax,常见于省市联动菜单,可能是由于在aspx页面赋给了下拉菜单初始Item值, 阅读全文
posted @ 2007-04-29 14:30 似水流年-johnhuo 阅读(104) 评论(0) 推荐(0) 编辑
摘要:http://www.readygo.com.cn/NETFW/070216/Enterprise-Library-JiLiWenZhangHuiGuYuLongJi.htm 阅读全文
posted @ 2007-04-24 16:43 似水流年-johnhuo 阅读(115) 评论(0) 推荐(0) 编辑
摘要:public void BubbleSort(int[] R) { int i,j,temp; //交换标志 bool exchange; for(i=0; i<R.Length; i++) //最多做R.Length-1趟排序 { exchange=false; //本趟排序开始前,交换标志应为假 for(j=R.Length-2; j>=i; j--) { if(R[j+1]<R[j]) //交换条件 { temp=R[j+1]; R[j+1]=R[j]; R[j]=temp; exchange=true; //发生了交换,故将交换标志置为真 } } if(!exchan 阅读全文
posted @ 2007-04-24 15:40 似水流年-johnhuo 阅读(206) 评论(0) 推荐(0) 编辑
摘要:web打印,下面是搜集的资料:1.可以满足一般情况下的打印: 用document.all.WebBrowser.ExecWB(7,1);只能对整个页面进行打印 先给一个简单实用的方式(可以打印多页,控制分页,隐藏非打印项目) <!--语言无关 保存成 .HTML 看看--> <html> <head> <title>报表</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <! 阅读全文
posted @ 2007-04-23 15:46 似水流年-johnhuo 阅读(212) 评论(0) 推荐(0) 编辑
摘要:.net 2005 访问oracle 9i时,首先加入oracle client的引用。然后在web.config中添加连接<add name="test" connectionString="Data Source=hliq;Persist Security Info=True;User ID=test;Password=test;Unicode=True" providerName="System.Data.OracleClient"/>呵呵,当然如果用ODBC也可以的。不过要记得test用户是normal身份登录的, 阅读全文
posted @ 2007-03-08 14:54 似水流年-johnhuo 阅读(171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示