随笔分类 -  CSharp code

C#代码学习
摘要:<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" EnableEventValidation="false" validateRequest="false" CodeBehind="Vote.aspx.cs" Inherits="dupcit.Vote" %><%@ Register Src="UserControl/WebU 阅读全文
posted @ 2011-05-22 14:24 ®Geovin Du Dream Park™ 阅读(1267) 评论(0) 推荐(0)
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RepeaterDemo.aspx.cs" Inherits="OldbSiteMapProviderDemo.RepeaterDemo" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tra 阅读全文
posted @ 2011-05-20 17:51 ®Geovin Du Dream Park™ 阅读(409) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Drawing; 5 using System.Drawing.Imaging; 6 using System.IO; 7 using System.Net; 8 9 10 namespace COMP11 {12 public class DownloadImage13 {14 private string imageUrl;15 private Bitmap bitmap;16 /// <summary> 阅读全文
posted @ 2011-05-06 12:08 ®Geovin Du Dream Park™ 阅读(445) 评论(0) 推荐(0)
摘要:1 //1.涂聚文 2 3 <asp:GridView ID="gvCategories" runat="server" > 4 5 6 <Columns> 7 8 9 <asp:HyperLinkField DataTextField="CategoryName" DataNavigateUrlFields="CategoryID,CategoryName,Description" DataNavigateUrlFormatString="~/Learning.aspx?c 阅读全文
posted @ 2011-05-02 17:37 ®Geovin Du Dream Park™ 阅读(305) 评论(0) 推荐(0)
摘要:1usingSystem;2usingSystem.IO;3usingSystem.Globalization;4usingSystem.Text;5usingSystem.Data;6usingSystem.Xml;789publicclassBinStream10{11publicBinStream()12{13Writer();14Reader();15//ReaderWriteFile();16}17publicstaticvoidMain()18{19BinStreambs=newBinStream();20Console.ReadLine();21222324}252627priv 阅读全文
posted @ 2011-04-27 16:45 ®Geovin Du Dream Park™ 阅读(524) 评论(0) 推荐(0)
摘要:1 //Windows XP 简体中文测试的结果,涂聚文注. 2 3 using System.Runtime.InteropServices;//第一种API方式 4 5 6 //API方式: 7 [DllImport("kernel32.dll", EntryPoint = "GetSystem 阅读全文
posted @ 2011-04-21 13:54 ®Geovin Du Dream Park™ 阅读(1291) 评论(0) 推荐(0)
摘要:1protectedvoidPage_Load(objectsender,EventArgse)2{3//Pagetitle4.4Page.Title="Thisisatitleandmetatestpage.";5//Encode/Contenttype7.6HtmlMetaencode=newHtmlMeta();7encode.HttpEquiv="Content-Type";8encode.Content="text/html;charset=utf-8";9Page.Header.Controls.Add(encode);1 阅读全文
posted @ 2011-03-31 20:26 ®Geovin Du Dream Park™ 阅读(562) 评论(0) 推荐(1)
摘要:1usingSystem;2usingSystem.Data;3usingSystem.Configuration;4usingSystem.Collections;5usingSystem.Web;6usingSystem.Web.Security;7usingSystem.Web.UI;8usingSystem.Web.UI.WebControls;9usingSystem.Web.UI.WebControls.WebParts;10usingSystem.Web.UI.HtmlControls;1112namespacesitemapdemo13{14///<summary> 阅读全文
posted @ 2011-03-23 09:34 ®Geovin Du Dream Park™ 阅读(935) 评论(0) 推荐(0)
摘要:1///<summary>2///ADOXobjects3///创建Access数据4///涂聚文5///</summary>6privatevoidcreateAccessTest()7{8stringdbName=Server.MapPath("~")+"\\"+Guid.NewGuid().ToString()+".mdb";//"D:DataBaseFirstCatalog.mdb";9ADOX.CatalogClasscatlog=newADOX.CatalogClass();10 阅读全文
posted @ 2011-03-19 18:17 ®Geovin Du Dream Park™ 阅读(628) 评论(0) 推荐(0)
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1///<summary>2///Msn天气预报3///涂聚文2011-02-16因为被扒手把移动硬盘扒了.重新写.几年的代码因为没有备份,全泡了.重新开始.4///</summary>5publicclassMsnWeatherAPI6{7///<summary>8///Msn天气预报9///</summary>10///<param 阅读全文
posted @ 2011-02-16 19:34 ®Geovin Du Dream Park™ 阅读(736) 评论(0) 推荐(0)
摘要:from: http://social.msdn.microsoft.com/Forums/zh-TW/236/thread/78f5f655-f378-4662-b73d-b6371d03f20c 1.在网站內新增一个项目叫做 浏览器文件", 它自动会产生一个App_Browsers的目录, 包含一个叫BrowserFile.browser的文件.2.在App_Browsers的目录下再新增一个 "浏览器文件"项目,取名为Others.browser.文件代码为:代码Code highlighting produced by Actipro CodeHighlighter (freeware 阅读全文
posted @ 2011-01-18 14:56 ®Geovin Du Dream Park™ 阅读(908) 评论(0) 推荐(0)
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Data;3usingSystem.Configuration;4usingSystem.Collections;5usingSystem.Web;6usingSystem.Web.Security;7usingSystem.Web.UI;8usingSystem.Web.UI.WebControls;9usingSystem.Web.UI.W 阅读全文
posted @ 2011-01-15 18:52 ®Geovin Du Dream Park™ 阅读(505) 评论(0) 推荐(0)
摘要:FROM: http://sourceforge.net/projects/metadataspr/ http://www.drewnoakes.com/code/exif/http://www.holmessoft.co.uk/homepage/Software/ExifUsage.htmhttp://www.exif.org/samples.htmlWrite EXIF metadata to a jpeg file http://www.dreamincode.net/code/snippet3144.htm代码Code highlighting produced by Actipro 阅读全文
posted @ 2011-01-15 16:41 ®Geovin Du Dream Park™ 阅读(1206) 评论(0) 推荐(0)
摘要:FROM: http://www.geekpedia.com/tutorial231_Getting-the-Who-Is-Information-of-a-Hostname.html http://www.aspdev.org/articles/build-whois-lookup-asp.net/Windows Forms代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Collection 阅读全文
posted @ 2010-12-15 18:58 ®Geovin Du Dream Park™ 阅读(542) 评论(0) 推荐(0)
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="WebForm2.aspx.cs"Inherits="WebStat.WebForm2"%23!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1- 阅读全文
posted @ 2010-12-15 17:08 ®Geovin Du Dream Park™ 阅读(1116) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="WebForm1.aspx.cs"Inherits="DynamicScreens.... 阅读全文
posted @ 2010-09-21 12:49 ®Geovin Du Dream Park™ 阅读(1314) 评论(0) 推荐(0)
摘要:SQL示例代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1createtableEmployee2(3EmployeeIDintIDENTITY(1,1)PRIMARYKEYNOTNULL,4CompanyNamenvarchar(20),5P... 阅读全文
posted @ 2010-09-18 11:38 ®Geovin Du Dream Park™ 阅读(1059) 评论(0) 推荐(0)
摘要:Default.aspx代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="Default.aspx.cs"Inherits="Grid... 阅读全文
posted @ 2010-09-16 11:55 ®Geovin Du Dream Park™ 阅读(1718) 评论(0) 推荐(0)
摘要:客服端代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="RepeaterCheckBox1.aspx.cs"Inherits="Che... 阅读全文
posted @ 2010-09-13 19:17 ®Geovin Du Dream Park™ 阅读(572) 评论(0) 推荐(0)
摘要:客户端代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="Default.aspx.cs"Inherits="UploadFile._D... 阅读全文
posted @ 2010-09-13 08:47 ®Geovin Du Dream Park™ 阅读(2896) 评论(0) 推荐(0)