随笔分类 -  C#

C#的相关代码
摘要:参考了微软的资料http://chs.gotdotnet.com/quickstart/aspplus/:总结几点:1. 为了使页能够访问执行SQL 数据必须将 System.Data 和System.Data.SqlClient 命名空间导入到页中2. 创建与数据库的 SqlConnection,传递连接字符串,然后构造包含查询语句的 SqlDataAdapter 对象,调用命令的 Fill 方... 阅读全文

posted @ 2010-08-04 15:40 Love 阅读(261) 评论(0) 推荐(0) |

摘要:string q = Request.Url.Query;System.Collections.Specialized.NameValueCollection nv = System.Web.HttpUtility.ParseQueryString(q, System.Text.Encoding.GetEncoding("GB2312")); string areaid = nv["aid"]; 阅读全文

posted @ 2009-06-10 16:56 Love 阅读(332) 评论(0) 推荐(0) |

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.Collections.Specialized;namespace Controller.Interface.Area{ public clas... 阅读全文

posted @ 2008-10-31 15:14 Love 阅读(311) 评论(0) 推荐(0) |

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1复制目录到其他目录#region复制目录到其他目录2publicstaticvoidCopyDirectory(stringsourceDirectoryName,stringdestinationDi... 阅读全文

posted @ 2008-07-22 15:31 Love 阅读(197) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3