随笔分类 -  asp.net,C#

上一页 1 ··· 21 22 23 24 25

IBatis.Net学习笔记十二:发现一个好用的IBatis.Net生成工具
摘要:发现一个好用的ibatis.net生成工具,可以根据数据库自动生成domain和xml文件,名称是mygeneration。我试用了一下,效果不错。详细介绍参见它的主页:http://www.mygenerationsoftware.com/portal/default.aspx支持的语言为:c#,vb.net支持的数据库有:microsoft sql,oracle,ibm db2, postgr... 阅读全文

posted @ 2009-05-15 20:55 与时俱进 阅读(704) 评论(1) 推荐(0) 编辑

一个操作firebird的helper类
摘要:参照了pet shop以及DAAB,usingSystem;usingSystem.Data;usingSystem.Collections.Generic;usingSystem.Text;usingFirebirdSql.Data.FirebirdClient;namespaceADOHelper{publicclassFirebird{privatestringconnStrTemplate... 阅读全文

posted @ 2009-05-15 20:52 与时俱进 阅读(1305) 评论(3) 推荐(0) 编辑

C# - Append a host header to a website in IIS by code
摘要:The following example adds a host header to a website in IIS. This involves changing the ServerBindings property. There is no Append method that can be used to append a new serverbinding to this prope... 阅读全文

posted @ 2009-05-13 13:44 与时俱进 阅读(370) 评论(0) 推荐(0) 编辑

通过ASP.NET获取URL地址方法
摘要:如果测试的url地址是http : //www.test.com/testweb/default.aspx, 结果如下: Request.ApplicationPath: /testweb Request.CurrentExecutionFilePath: /testweb/default.aspx Request.FilePath: /testweb/default.aspx Request.P... 阅读全文

posted @ 2009-05-07 18:25 与时俱进 阅读(353) 评论(0) 推荐(0) 编辑

C# DataSet和DataTable详解
摘要:1、创建DataSet对象: DataSet ds = new DataSet("DataSetName"); 2、查看调用SqlDataAdapter.Fill创建的结构 da.Fill(ds,"Orders"); DataTable tbl = ds.Table[0]; foreach(DataColumn col in tbl.Columns) ... 阅读全文

posted @ 2009-04-23 09:15 与时俱进 阅读(7793) 评论(1) 推荐(0) 编辑

aspx 页面,master页面与ascx用户控件传值的问题
摘要:aspx 页面与ascx用户控件传值的问题 1.建立ascx控件 2.给ascx加上属性 3.将控件拖入aspx中 4.在aspx的代码中按控件ID访问属性 如: left_Repassword1.HighLight = value; 也同样适用于master页面访问ascx -----------------------------------------------------------... 阅读全文

posted @ 2009-04-15 09:34 与时俱进 阅读(826) 评论(0) 推荐(0) 编辑

关于验证码整理的新版本
摘要:关于验证码整理的新版本,仅修改vcode.aspx文件,其余不变. using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.... 阅读全文

posted @ 2009-04-15 09:21 与时俱进 阅读(298) 评论(0) 推荐(0) 编辑

DataTable.PrimaryKey 属性
摘要:第一个示例显示如何返回在 DataGrid 中显示的 DataTable 的主键列。第二个示例演示如何为 DataTable 设置主键列。 Visual Basic Private Sub GetPrimaryKeys(table As DataTable) ' Create the array for the columns. Dim columns() As DataColumn c... 阅读全文

posted @ 2009-04-09 15:36 与时俱进 阅读(5680) 评论(0) 推荐(0) 编辑

利用Cache缓存数据DataTable数据提高大数据量访问性能
摘要:引言: 在数据量不大的情况下,程序怎么写基本上性能差别不大,但是当我们面对数以万计的数据的时候,我想性能就是个不得不考虑的问题了,每写一个方法,每填充一笔数据都要考虑到性能问题,否则服务器将承担巨大的执行开销,如果服务器性能不好可能立即就死在那里了,所以在大数据量频繁访问的页面上,我们就必须考虑如何提高页面的性能了,本文将提供一种用cache提高访问性能的方法来解决此问题,在很大程度上提高页面加... 阅读全文

posted @ 2009-04-09 15:02 与时俱进 阅读(335) 评论(0) 推荐(0) 编辑

使用ADO.NET轻松操纵数据库
摘要:ADO.NET提供了Connection来连接数据库,同时也提供了Command对象来查询数据库。同Connection对象一样,Command也有两种:OleDbCommand和SqlCommand.其区别同Connection对象。 要操纵数据库,必须先使用Connection来连接到数据库,再创建一个Command来查询。有几种创建方式,例: SqlCommand cmd; st... 阅读全文

posted @ 2009-04-09 14:58 与时俱进 阅读(164) 评论(0) 推荐(0) 编辑

DataReader终结篇
摘要:这一次我们将把DataReader了结,同时我们提到的有些技巧与DataReader无关但是是很基本的也很有用的技巧。 一,参数化查询 在上一篇文章发表以后不少网友提意见说代码不规范,没有对sql使用参数,这确实是很大一个漏洞,所以我在这里首先谈一下参数化查询问题。 使用参数化查询的好处:可以防止sql注入式攻击,提高程序执行效率。 针对sql server .net data Provi... 阅读全文

posted @ 2009-04-09 14:35 与时俱进 阅读(237) 评论(0) 推荐(0) 编辑

ASP.NET程序中常用代码汇总
摘要:1. 打开新的窗口并传送参数: //传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)</script>") //接收参数: string a = Request.QueryString("id"); string b = Request.Qu... 阅读全文

posted @ 2009-04-09 14:03 与时俱进 阅读(174) 评论(0) 推荐(0) 编辑

Mono入门指导
摘要:Mono的入门教程,没有包括安装和配置部分 蛮实用的,都是flash教程 Getting Started with Linux Desktop Development Using Mono 用Mono开始Liunx桌面编程 Getting Started with ASP.NET, ADO.NET and Web Service Development on Mono 用Mono开始Web及... 阅读全文

posted @ 2009-04-09 13:24 与时俱进 阅读(1285) 评论(0) 推荐(0) 编辑

.NET中各种数据库连接大全
摘要:SQL Server ODBC Standard Security: "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;" Trusted connection: "Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;" Pro... 阅读全文

posted @ 2009-04-07 19:38 与时俱进 阅读(573) 评论(0) 推荐(0) 编辑

Sqlite数据库的加密
摘要:最近在做一个winform的程序,考虑用Sqlite的数据库,小巧而实用,比Access强多了,不过需要加密,不过free版本没有实现加密,有一些c++的实现:比如:http://www.sqlite.com.cn/MySqlite/3/253.Html 和http://www.cppblog.com/niewenlong/archive/2007/06/01/25261.html 。不过,... 阅读全文

posted @ 2009-04-07 12:40 与时俱进 阅读(929) 评论(0) 推荐(0) 编辑

MonoDevelop 2.0 Released 发布
摘要:The MonoDevelop team is proud to announce the release of MonoDevelop 2.0. MonoDevelop is a GNOME IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly wri... 阅读全文

posted @ 2009-04-02 15:40 与时俱进 阅读(586) 评论(1) 推荐(0) 编辑

Mono 2.4和MonoDevelop 2.0发布
摘要:.NET的开源实现Mono 2.4正式发布,开发者还同时发布了MonoDevelop 2.0。Mono 2.4更稳定和更迅速,主要特性有:SIMD支持,不再出现polling code,新的基于线性IR的JIT替换了旧JIT,ASP.NET堆栈能预先编译Visual Studio或aspnet_compiler生成的ASP.NET网站等等。 阅读全文

posted @ 2009-03-31 17:08 与时俱进 阅读(492) 评论(0) 推荐(0) 编辑

上一页 1 ··· 21 22 23 24 25
友情链接:同里老宅院民居客栈