随笔分类 -  c#

摘要:数据类型 1,float表示的精度为7位,double 表示的精度约为15位或16位 阅读全文
posted @ 2010-03-30 17:55 zxlin25 阅读(159) 评论(0) 推荐(0)
摘要:自学c#.net 一年有余,一直来学习的资料都没有很好的整理,没去复习,知识结构严重松散,基础不够牢固,至此,打算写一系列c#复习加强系统文章,以此作为目标,勉励自己。 阅读全文
posted @ 2010-03-29 16:59 zxlin25 阅读(196) 评论(0) 推荐(0)
摘要:""与string.Empty是一样的,都表示空字符串,即这个string对象的值为空,但已经为其分配内存 null表示这个string对象为空,即这整个对象为空,没有为其分配内存 When a string variable is set to null, this means that it ... 阅读全文
posted @ 2009-09-08 14:32 zxlin25 阅读(170) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication8 { //定义委托 public delegate bool CompareDelegate(int ... 阅读全文
posted @ 2009-09-02 23:37 zxlin25 阅读(196) 评论(0) 推荐(0)
摘要:首先要在使用的电脑上注册,这不同于其他的dll文件,如果在服务器上使用 jmail这些文件上传到服务器,修改权限为everyone为full control 然后要Regsvr32 "D:\Program Files\Dimac\w3JMail4\jmail.dll“ 记得要加引号否则无法注册。 阅读全文
posted @ 2009-08-21 18:53 zxlin25 阅读(238) 评论(0) 推荐(0)
摘要:有一数组;转换为字符串后为 aaa|bbb|ccc|ddd| 现要去掉最后一个| 第一种方法: 语句为:str1=aaa|bbb|ccc|ddd| str=str1.substring(0,lastindecof("|")); respone.write(str); outprint: ======... 阅读全文
posted @ 2009-06-26 20:35 zxlin25 阅读(3034) 评论(0) 推荐(0)
摘要:1: 怎么在后台获取他的id use runat="server" add it in this elements 阅读全文
posted @ 2009-05-29 11:37 zxlin25 阅读(325) 评论(0) 推荐(0)
摘要:Application 1. Application用来保存所有用户共用的信息 2. 在Asp时代,如果要保存的数据在应用程序生存期内不会或者很少发生改变,那么使用Application是理想的选择。但是在Asp.net开发环境中我们把类似的配置数据放在Web.config中。 3. 如果要使用A... 阅读全文
posted @ 2009-05-18 08:56 zxlin25 阅读(237) 评论(0) 推荐(0)
摘要:命名规则Ver3.0 2004年6月 本规则是为了增强开发人员所写程序的规范性、可读性而设计的。主要应用于.net开发的项目,3.0版以适用于VB、C#、C++等多种语言。 总体要求 1. 词语要求尽量的简练准确,有缩写的尽量用缩写; 2. 规则并非一成不变... 阅读全文
posted @ 2009-04-01 09:51 zxlin25 阅读(430) 评论(0) 推荐(0)
摘要:前台代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 2 3 4 5 6 7 8 9 10 11 12 13学号:,姓... 阅读全文
posted @ 2009-03-24 21:21 zxlin25 阅读(158) 评论(0) 推荐(0)
摘要:Random myrd=new Random (); string filename = DateTime.Now.ToString().Replace("-","").Replace(":","").Replace(" ","") + myrd.Next(1000).ToString()... 阅读全文
posted @ 2009-03-24 09:55 zxlin25 阅读(315) 评论(0) 推荐(0)
摘要:jkj Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; 2usingSystem.Data; 3us... 阅读全文
posted @ 2009-03-24 09:19 zxlin25 阅读(667) 评论(0) 推荐(0)
摘要:Server.Transfer可以把页面上的一些数据传到其他的页面,而response.redirect只转入页面。 看看server。transfer的用法: A:页面代码: ' name="tp_id[]" id="tp_id[]" value='' /> cs代码: protected voi... 阅读全文
posted @ 2009-03-16 09:41 zxlin25 阅读(236) 评论(0) 推荐(0)
摘要:asp.net防注入 一.如果参数全为数字: //检查字符串是否全为数字 publicstaticboolIsNum(stringStr) { boolblResult=true; if(Str=="") blResult=false; else { foreach(cha... 阅读全文
posted @ 2009-03-09 19:04 zxlin25 阅读(499) 评论(0) 推荐(0)
摘要:今天写了一个在投票栏目下增加主题的代码 看代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; ... 阅读全文
posted @ 2009-03-04 18:32 zxlin25 阅读(176) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem; 2usingSystem.Collections.Ge... 阅读全文
posted @ 2009-02-27 15:24 zxlin25 阅读(2393) 评论(0) 推荐(0)
摘要:1:DataBinder.Eval(Container.DataItem,"username") 和 Eval绑定的区别 网上看到的: 如果只是显示值就可以了. 如果是要修改值就可以了. 2:获取IP代码: string userip = Request.UserHostAddress.ToStr... 阅读全文
posted @ 2009-02-26 19:04 zxlin25 阅读(134) 评论(0) 推荐(0)
摘要:表示用于填充 DataSet 和更新 SQL Server 数据库的一组数据命令和一个数据库连接。无法继承此类。 SqlDataAdapter 是 DataSet 和 SQL Server 之间的桥接器,用于检索和保存数据。SqlDataAdapter 通过对数据源使用适当的 Transact-SQ... 阅读全文
posted @ 2009-02-26 18:44 zxlin25 阅读(484) 评论(2) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicstaticstringGetleftString(stringstr... 阅读全文
posted @ 2009-02-26 11:50 zxlin25 阅读(140) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->1usingSystem; 2usingSystem.Collections.Generic; 3usingSystem.Text; 4 5namespace... 阅读全文
posted @ 2009-02-23 21:44 zxlin25 阅读(123) 评论(0) 推荐(0)