
访问Oracle时客户端(或者web服务器)得安装一个Oracle的客户端,这个有点不爽,SQL Server不用呀,MySQL顶多来个MySql.Data.d....
1. 获取应用程序当前的路径 复制代码 代码如下:System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingA....
复制代码 代码如下:":""%>asp.net日期绑定的转换复制代码 代码如下:
值类型 引用类型 以C#为例:其值类型为sbyte,byte,char,short,ushort,int,uint,long和ulong,float和double,当然....
复制代码 代码如下:HtmlGenericControl Include2 = new HtmlGenericControl("script"); Include2.Attributes.Add("type", "t....
代码如下: public partial class Form1 : Form { public Form1() { InitializeComponent(); string strsql = @"server=.;uid....
Math.Round ()在四舍五入时有个问题: Math.Round(2.5,0) = 2; Math.Round(3.5,0) = 4; 2.5应该等于3才对! 在ASP中也存在这....
con.close() 是关闭连接,实际上是把连接放回ado.net的连接池,并没有真正关闭,所以再次连接时只是把连接从池中拿出来用,速度....
在GridView控件的RowDataBound事件里添加以下代码 if (e.Row.RowType == DataControlRowType.DataRow) { //当鼠标移到行上时....
打开解决方案, 找到 FileBrowser/FileWorkerBase.cs 文件 复制代码 代码如下:Response.Write( @"(function(){var d=documen....
复制代码 代码如下: /// /// 检测输入的邮件地址strEmail是否合法,非法则返回true。 /// public bool CheckEmail(string ....
无标题页 protected void Button1_Click(object sender, EventArgs e) { string a = this.UpLoadImage(this.File1, "Up....
MailMessage objMail = new MailMessage(); objMail.Subject = "邮件主题"; objMail.Body = "邮件正文"; string mfrom = txt....
它所实现的功能与C/C++中的函数指针十分相似。它允许你传递一个类A的方法m给另一个类B的对象,使得类B的对象能够调用这个方....
数据库表:CategoryInfo 字段名 类型 ciID int //记录序号,自增量 ciName nvarchar(20) //分类名 ciParent int //父分....
using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Collections; name
主要代码如下: 复制代码 代码如下:public void ProcessRequest(HttpContext context) { context.Response.ContentType = "a....
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.We
1.在登陆页面的检查登陆成功代码后添加如下代码 Session["UserID"] = txtUserID.Text.Trim(); 或者 Session["UserID"] ....
wwwStatus (default = Remove) Three supported values: Require, Remove, Ignore Require validates the current Url uses www.