上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Collections;namespaceSystemDAO{///<summary>///数据库的通用访问代码苏飞修改//////此类为抽象类,/ 阅读全文
posted @ 2011-05-26 14:08 superstar 阅读(331) 评论(0) 推荐(0)
摘要: using System;using System.Xml;using System.Text;using System.Net;using System.IO;using System.Collections;using System.Text.RegularExpressions;public class App{public static void Main(){string strCode;ArrayList alLinks;Console.Write("请输入一个网页地址:");string strURL = Console.ReadLine();if(strUR 阅读全文
posted @ 2011-04-10 13:43 superstar 阅读(309) 评论(0) 推荐(0)
摘要: 编程控制IIS实际上很简单,和ASP一样,.Net中需要使用ADSI来操作IIS,但是此时我们不再需要GetObject,因为.Net为我们提供了更加强大功能的新东西。System.DirectoryServices命名空间中包括了些强大的--DirectoryEntry,DirectoryEntries,它们为我们提供了访问活动目录的强大功能,在这些类允许我们操作IIS、LDAP、NDS以及WinNT。不过我们此处只谈IIS的控制,一般来说,我们操作IIS一般都是对虚拟目录的操作,因此我将此列为主要的内容来讲。 首先我们要搞清楚IIS的层次结构的问题,下面是我从国外找来的一张图,很好的解释了 阅读全文
posted @ 2011-03-29 20:52 superstar 阅读(1579) 评论(0) 推荐(0)
摘要: System.Globalization.NumberFormatInfo provider = new System.Globalization.NumberFormatInfo();provider.NumberDecimalDigits =intDecLength; //要设定的小数位数double strCashAmt=Convert.ToDouble(this.txtCashAmt.Text); //先把控件內的值转成doublethis.txtCashAmt.Text = strCashAmt.ToString("N",provider); //再利用ToStr 阅读全文
posted @ 2011-03-21 11:32 superstar 阅读(1205) 评论(0) 推荐(1)
摘要: 2、项目中,联系人详细信息这一个页面中,联系人的性别在数据库字段的保存,男的用0表示,女的用1表示,所以,如果直接就读出来绑定到DataList中,性别就显示成0或1了。所以需要将Sql语句进行改造。先看看我原先的做法,这样做,组长叫我重做了,要叫我要CASE WHEN来写。 不用CASE WHEN 的做法。源代码如下:string sql="select * from CONTACTPERSON... 阅读全文
posted @ 2010-11-08 11:50 superstar 阅读(696) 评论(0) 推荐(0)
摘要: 您可以通过如下的方法实现从win application中upload file假设上传目录的物理路径为c:\upload,url为http://localhost/upload1.在IIS中upload虚拟目录属性中的directory security中的anonymous access and authentication control一栏中,点击edit,选中Anonymous acce... 阅读全文
posted @ 2010-10-21 09:22 superstar 阅读(3161) 评论(0) 推荐(0)
摘要: http://www.csharpwin.com/csharpresource/5261r2896.shtmlWinForm程序开发中,ListBox控件是比较常用的一个控件,有时候我们需要一个比较美观的ListBox控件,让用户看ListBox控件显示的信息时比较清晰、形象,我们可以让ListBox控件隔行显示不同的背景色,让每个项显示图标,本文将介绍怎样实现这样的一个ListBox扩展控件。 ... 阅读全文
posted @ 2010-07-02 12:11 superstar 阅读(1075) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Drawing;namespace CSharpWin{ /* 作者:Starts_2000 * 日期:2009-09-08 * 网站:http://www.csharpw... 阅读全文
posted @ 2010-05-31 19:02 superstar 阅读(209) 评论(0) 推荐(0)
摘要: /// <summary> /// 用鼠标拖动Panel /// </summary> public class MovePanel : Panel { private bool whetherSelected = false; private Point p = new Point(); public bool WhetherSelected { get { retur... 阅读全文
posted @ 2010-05-28 17:45 superstar 阅读(275) 评论(0) 推荐(1)
摘要: 开篇语:对于已有工作经验的朋友,也许面试题已显得不怎么重要,但是如果你应聘的还仅仅是个普通的程序员,相信在很多的公司都还是会先拿出一套面试题,可能对整个面试影响不大,但做好面试题无疑会赢得第一个好的印象,特别对于那些缺少项目经验的应届毕业生。很多时候,在看这些面试题的时候,是否有感过曾经那些一个个不起眼的小程序题所针对的问题正是自己在项目中所犯的错误?是否会发现,原来还有这么多东西自己都还从未去想... 阅读全文
posted @ 2010-03-31 09:13 superstar 阅读(287) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页