
DotNet
firewings_r
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
asp.net 数据库字符串链接
用户名密码方式:<connectionStrings><addname="调用名"connectionString="PersistSecurityInfo=False;UserID=sa;Password=;InitialCatalog=数据库名;Server=(local);"providerName="System.Data.SqlClient"/>...2008-07-21 13:12:00 · 158 阅读 · 0 评论 -
交错数组
using System;namespace PerformanceLibrary{public class ArrayHolder { int[][] jaggedArray = { new int[] {1,2,3,4},new int[] {5,6,7},new int[] {8},new int[] {9} };int [,] multiDimArray = {{1,2,3,4}, {5,...2008-07-29 11:09:00 · 108 阅读 · 0 评论 -
根据时间差计算日期
public DateTime Getime(){TimeSpan toget = new TimeSpan(0, 0, Convert.ToInt32(AverageUnitTime() * Convert.ToInt32(this.label16.Text, 16)));return Convert.ToDateTime(label12.Text) + toget;}...2008-07-30 11:06:00 · 193 阅读 · 0 评论 -
存储过程调用
public static DataTable GetAllProductsInCategory(string categoryId){// get a configured DbCommand objectDbCommand comm = GenericDataAccess.CreateCommand();// set the stored procedure name...2008-07-30 16:19:00 · 128 阅读 · 0 评论 -
数据工厂
public static DbCommand CreateCommand(){// Obtain the database provider namestring dataProviderName = BalloonShopConfiguration.DbProviderName;// Obtain the database connection stringstrin...2008-07-30 16:25:00 · 507 阅读 · 0 评论 -
Asp 服务器相关参数
Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径 Request.ServerVariables("Path_Translated") 通过由虚拟...原创 2011-04-14 15:04:22 · 154 阅读 · 0 评论