![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 133 阅读 · 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 · 80 阅读 · 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 · 149 阅读 · 0 评论 -
存储过程调用
public static DataTable GetAllProductsInCategory(string categoryId) { // get a configured DbCommand object DbCommand comm = GenericDataAccess.CreateCommand(); // set the stored procedure name ...2008-07-30 16:19:00 · 84 阅读 · 0 评论 -
数据工厂
public static DbCommand CreateCommand() { // Obtain the database provider name string dataProviderName = BalloonShopConfiguration.DbProviderName; // Obtain the database connection string strin...2008-07-30 16:25:00 · 443 阅读 · 0 评论 -
Asp 服务器相关参数
Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径 Request.ServerVariables("Path_Translated") 通过由虚拟...原创 2011-04-14 15:04:22 · 122 阅读 · 0 评论