摘要: ASP.NET获取客户端IP及MAC地址2008-12-01 14:50ASP.NET获取客户端IP及MAC地址很多时候非常必要的,像做投票、留言、评论 等系统的时候防止别人恶意操作,导致数据的虚假行。下面介绍获取客户端的IP和MAC地址的方法,仅供参考:获取客户端IP:private string GetClientIP(){ string result = HttpContext.Curren... 阅读全文
posted @ 2009-09-09 12:17 shiningrise 阅读(3055) 评论(0) 推荐(0) 编辑
摘要: :foreach wbsz in=[/ip arp find dynamic=yes ] do=[/ip arp add copy-from=$wbsz]:foreach wxy in [/ip dhcp-server lease find] do={/ip dhcp-server lease remove $wxy}:foreach wbsz in=[/ip arp find dynamic=n... 阅读全文
posted @ 2009-06-25 10:46 shiningrise 阅读(3447) 评论(4) 推荐(0) 编辑
摘要: <%# (Container as GridViewRow).RowIndex %> 阅读全文
posted @ 2009-05-24 21:19 shiningrise 阅读(398) 评论(0) 推荐(0) 编辑
摘要: WinRAR注册码WinRAR支持经 AES-128 算法加密的各类 RAR/WinRAR 压缩包 WinRAR注册码:ARPR-83296730531875-CBBVYBXFEXDEVPMBDelphi7 snSerial Number:DAAP-CTFQ38-NZZ92W-2FAPAuthorization Key:8TB-MRSSerial Number:882V-9N4YN6-?23DDU... 阅读全文
posted @ 2009-05-13 15:30 shiningrise 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: ODBC - IBPhoenix Open SourceCustomize string example valuesStandardDriver=Firebird/InterBase(r) driver;Uid=SYSDBA;Pwd=masterkey; DbName=D:\FIREBIRD\examples\TEST.FDB;IBPhoenix ODBC; More info, downloa... 阅读全文
posted @ 2009-05-13 15:12 shiningrise 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: http://www.wz16.com/download/%E6%8B%9B%E7%94%9F%E7%BD%91%E4%B8%8A%E6%8A%A5%E5%90%8D%E7%A8%8B%E5%BA%8F/ 阅读全文
posted @ 2009-05-12 15:30 shiningrise 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 周六上午叫我来读书而你老师又没有通知我们就没有读。我们白跑了2小时车。这就是你们等待我学生的态度吗???请学校给我解释清楚。 阅读全文
posted @ 2009-05-11 09:21 shiningrise 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 用Delphi7 调用.NET 2.0的WebService 所要注意的问题。 Delphi7 调用VS.NET 2005开发的基于.NET 2.0的WebService时发生了错误。查阅资料http://www.community.borland.com/article/borcon/files/4132/paper/4132.html 发现原来Delphi7客户端虽然支持WebService... 阅读全文
posted @ 2009-05-09 11:11 shiningrise 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 已经解决了。经过在MSDN中的查找。发现只要在WebService的类属性中加入SoapRpcServiceAttribute属性就可以了。比如 [SoapRpcService(RoutingStyle=SoapServiceRoutingStyle.SoapAction)] 阅读全文
posted @ 2009-05-09 10:57 shiningrise 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 传感器接法 红外传感器接法 前红外: 数字9 左红外: 数字15 左45度角红外: 数字10 右45度角红外: 数字8 右红外: 数字14 火焰传感器接法 左火焰: 模拟3 中火焰: 模拟5 右火焰: 模拟4 (底部)灰度传感器: 模拟2 声控传感器: 模拟6    程序说明 #define p 120 //定义火焰传感器检测到火焰的返回值 int k,j,i=0,n,b=1,c=1; //... 阅读全文
posted @ 2009-05-08 08:35 shiningrise 阅读(913) 评论(0) 推荐(0) 编辑
摘要: float tim_1=0.0;float gf_1=0.0;int mic_1=0;int gi_1=0;int gi_2=0;int gi_3=0;int gi_4=0;int gi_5=0;int gi_6=0;int gi_7=0;int gi_8=0;int gi_9=0;int gi_10=0;int ma_1=0;int ma_2=0;int ma_3=0;int ma_4=0;in... 阅读全文
posted @ 2009-05-08 08:34 shiningrise 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 使用CK.K的话:CK.K["班级_Id"] == 班级.Id使用Linq的话:p.班级.Id == 班级.Id2009/5/6 吴晓阳 >> 我在firebird2.1中自动创建表,,发现HasMany关系不能自动创建外键约束,其他关系我还没遇到。>> 另外,在HasMany关系中,比如,学生与班级的关系,一个班级有很多学生,一个学生只能属于某一个班级(在某一时刻)。。&... 阅读全文
posted @ 2009-05-07 12:02 shiningrise 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 为了保证评教结果的客观性和公正性,请同学们认真评教。 输入您的姓名和学号仅是为了判断您所在的班级和任课教师及课程。 教务处郑重承诺:对评测者的信息绝对保密。 对恶意的评测将予以追究。 阅读全文
posted @ 2009-05-03 18:33 shiningrise 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 学生评教系统及操作说明 【信息来源:教务处发布时间:2008-11-24 点击量:733 次】 学生评教系统操作说明 1.从http://fwit.h88.98dns.com/index.asp进入学生评教系统。主页如下图示: 注意:本系统开放截止日期为2008年11月24日,自12月3日零时起关闭。 2、在学生评教系统的主页中单击“学生登录”进入学生登录页面。 3、在学生... 阅读全文
posted @ 2009-05-03 15:53 shiningrise 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: The following code shows a composed index Name_Age with DESC, UNIQUE mode:class MyTest{ [DbKey] public long Id = 0; [Index("Name_Age", ASC = false, UNIQUE = true)] public string Name = null; [Index("N... 阅读全文
posted @ 2009-04-18 16:32 shiningrise 阅读(374) 评论(0) 推荐(0) 编辑
摘要: The mutil-key example:public class MKey : IDbObject{ [DbKey(IsDbGenerate = false), Length(50)] public string Name; [DbKey(IsDbGenerate = false)] public int Age; public bool Gender;} 阅读全文
posted @ 2009-04-16 17:19 shiningrise 阅读(290) 评论(0) 推荐(0) 编辑
摘要: /**//*如果使用if (e.Row.RowState == DataControlRowState.Edit)作为判断条件,那么如果当前行恰好是交替行时,条件不成立-即便当前行确实也处于编辑状态*/4 if ((e.Row.RowState & DataControlRowState.Edit) != 0)5 {6 e.Row.Cells[0].BackColor = System.D... 阅读全文
posted @ 2009-04-16 01:05 shiningrise 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 需要override bool Equals(object obj) 阅读全文
posted @ 2009-04-16 00:28 shiningrise 阅读(567) 评论(0) 推荐(0) 编辑
摘要: <EditItemTemplate> <asp:CheckBoxList ID="cblXueke" runat="server" DataTextField="Id" DataValueField="FullName" RepeatDirection="Horizontal" RepeatLayout="Flow"> </asp:CheckBoxList> ... 阅读全文
posted @ 2009-04-16 00:05 shiningrise 阅读(645) 评论(0) 推荐(0) 编辑
摘要: http://www.smsgate.cn/api.asp 阅读全文
posted @ 2009-04-15 23:47 shiningrise 阅读(345) 评论(0) 推荐(0) 编辑
摘要: //删除 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { string sqlstr = "delete from 表 where id='" + GridView1.DataKeys[e.RowIndex].Value.ToString() + "'"; sqlcon = new S... 阅读全文
posted @ 2009-04-15 23:16 shiningrise 阅读(506) 评论(1) 推荐(0) 编辑
摘要: /Files/shiningrise/2009/BaoXiu.rar登陆帐号密码都为wxy测试前请将数据库字符串修改正确附:http://www.firebirdsql.org/http://www.codeplex.com/DbEntry默认 FirebirdSql.Data.FirebirdClient, Version=2.5.0.0dbEntry.net使用最新源码编译 阅读全文
posted @ 2009-04-14 17:56 shiningrise 阅读(1639) 评论(2) 推荐(0) 编辑
摘要: Subscriber: myeclipse5.5 SubNULLion Code: zLR8ZC-850444-5453675708725833 阅读全文
posted @ 2009-04-06 18:41 shiningrise 阅读(7247) 评论(10) 推荐(0) 编辑
摘要: <Context path="/jee" docBase="D:\SchoolWeb\jee\" debug="0" reloadable="true" crossContext="true" /> 阅读全文
posted @ 2009-03-31 14:09 shiningrise 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 1、从sun网站下载jdk1.6版2、从tomcat官方站下载tomcat6.0.14版3、下载JK2 (下载地址:http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip)版本:jakarta-tomcat-... 阅读全文
posted @ 2009-03-31 11:19 shiningrise 阅读(815) 评论(0) 推荐(0) 编辑
摘要: http://apache.justdn.org/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/ http://archive.apache.org/dist/tomcat/tomcat-connectors/jk2/binaries/win32/ 阅读全文
posted @ 2009-03-31 08:45 shiningrise 阅读(296) 评论(0) 推荐(0) 编辑
摘要: INSERT INTO ZICHANG (ID, DM, MC, SERIAL, ISLB) VALUES (1, '1', '房屋及建筑物', 1, '1');INSERT INTO ZICHANG (ID, DM, MC, SERIAL, ISLB) VALUES (2, '101', '房屋及建筑物', 2, '1');INSERT INTO ZICHANG (ID, DM, MC, SER... 阅读全文
posted @ 2009-03-28 19:38 shiningrise 阅读(503) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Reflection;public class Person { private string _Name; private int _Age; private string _Sex; public string Name { get { return this._Name; } ... 阅读全文
posted @ 2009-03-26 21:49 shiningrise 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 使用 \windows\microsoft.net\framework\[version]\aspnet_regsql 命令 阅读全文
posted @ 2009-01-09 00:49 shiningrise 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 我使用EMS管理fb数据库自动编号默认产生的是触发器AI_USERS_ID种子USERS_ID_GEN这个使用DbEnrty.net不能进行save操作, 改成下面这个样子就OK了触发器GEN_USERS_ID种子GEN_USERS_ID 阅读全文
posted @ 2008-12-02 21:07 shiningrise 阅读(310) 评论(0) 推荐(0) 编辑
摘要: win 2003 server是可以的,在“远程桌面连接”的“选项”的“本地资源”中把“磁盘驱动器”钩上就行了。 本篇文章来自<A href='http://www.soidc.net'>IDC专家网</a> 原文链接:http://www.soidc.net/discuss/2... 阅读全文
posted @ 2008-12-02 10:19 shiningrise 阅读(696) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE STUDENTADD ZNPF20 DECIMAL(3,1),ADD ZJPF20 DECIMAL(3,1),ADD TAIDU20 DECIMAL(3,1)[分享]Firebird的基本数据类型 由于排版关系,取幂将用[],比如10[5],表示10的5次方。INTEGER:长整型,取值范围:-2147483648至2147483647FLOAT:单精度浮点型,取值范围:1... 阅读全文
posted @ 2008-11-30 13:01 shiningrise 阅读(540) 评论(0) 推荐(0) 编辑
摘要: USER 'SYSDBA' PASSWORD 'masterkey' 阅读全文
posted @ 2008-11-30 11:51 shiningrise 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 官方例子:[代码]这里的GridView要设置成允许分页。另外asp:Repeater使用方法就不能这样而要:[代码]就是要使用GetCurrentPage函数; 阅读全文
posted @ 2008-08-13 15:39 shiningrise 阅读(615) 评论(1) 推荐(1) 编辑
摘要: 对于ValueType,定义的时候要使用Nullable:public abstract int? Age { get; set; }对于引用类型,定义的时候要使用AllowNull:[AllowNull]public abstract string Name { get; set; }2008/8/13 吴晓阳 <shiningrise@163.com>使用了您的dbEntry.ne... 阅读全文
posted @ 2008-08-13 12:03 shiningrise 阅读(1326) 评论(1) 推荐(0) 编辑
摘要: DbEntry.net的默认主键是bigint型的,而非int型,如果数据库中为int型,就会出现异常 阅读全文
posted @ 2008-08-13 00:43 shiningrise 阅读(515) 评论(0) 推荐(0) 编辑
摘要: [代码]DataBase节点中Data Source那一半就是我们平时用的数据库连接字符串。作者Demo中的连接字符串,我测试不成功。dbEntry.Net下载地址:http://www.codeplex.com/DbEntry/Wiki/View.aspx?title=Home 阅读全文
posted @ 2008-06-30 11:52 shiningrise 阅读(965) 评论(1) 推荐(0) 编辑
摘要: 以前遇到在数据时,GridView的最后一行数据总是不能立即更新今天又遇到,在网上找了很我,才知道是在重新绑定前连接没有关闭一直在用ActiveRecord+sqlHelper编程发现,用sqlHelper的IDataReader关闭了还是不行因为,同时用,所以,在ActiveRecord更新了数据库后,要先Flush()一下连接,这样用sqlHelper再打开数据库,GridView就被真更新掉... 阅读全文
posted @ 2008-06-30 02:27 shiningrise 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 是按条件来排序,举个简单的例子:select a,b,c from tab order by case 表达式 when 条件1 then a when 条件2 then b else c end; 这个select语句就是当表达式满足条件1的时候就按a来排序,满足条件2的时候就按b排序,否则就按c排序 阅读全文
posted @ 2008-06-29 21:14 shiningrise 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: http://www.firebird.net.cn/forum_view.asp?forum_id=5&view_id=165 http://www.firebird.net.cn/forum_view.asp?forum_id=1&view_id=1017 http://hi.baidu.com/xingfupingguo/blog/item/bc94c044ffa7c086b2b7dc8... 阅读全文
posted @ 2008-06-28 04:10 shiningrise 阅读(1055) 评论(0) 推荐(0) 编辑
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css