摘要:
web.config中: web中: vb: 1 Imports System.Configuration2 dim Conn As SqlConnection Conn = New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))3 c#: 1 using System.Configurati... 阅读全文
摘要:
1 Imports System.Data 2 Imports System.Data.OleDb 3 Public Class lyb 4 Inherits System.Web.UI.Page 5 #Region " Web 窗体设计器生成的代码 " 6 '该调用是 Web 窗体设计器所必需的。 7 8 Private... 阅读全文
摘要:
text的跳转并验证 1 using System.Text .RegularExpressions; 2 3 4 5 private void txtChequeCode_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) 6 { 7 if(e.KeyCode == Keys.Enter ) 8 { ... 阅读全文
摘要:
在.Net FrameWork中System.Web.Mail的命名空间提供了类SmtpMail,用于发送电子邮件,以下是我发送邮件的代码: 1 MailMessage mm=new MailMessage(); 2 3 mm.From="发送者邮箱"; 4 mm.To="接受者邮箱"; 5 mm.Subject="收到了回个话"; 6 mm.Body="为什么S... 阅读全文
摘要:
meta是用来在HTML文档中模拟HTTP协议的响应头报文。meta 标签用于网页的与中,meta 标签的用处很多。meta 的属性有两种:name和http-equiv。name属性主要用于描述网页,对应于content(网页内容),以便于搜索引擎机器人查找、分类(目前几乎所有的搜索引擎都使用网上机器人自动查找meta值来给网页分类)。这其中最重要的是description(站点在搜索引擎上的描... 阅读全文
摘要:
1.采用从CollectionBase抽象基类继承的方式实现Product集合类: 以数字做为索引值,详细成员查看msdn,还有更多的重载函数 1 using System; 2 using System.Collections; 3 public class productCollection:CollectionBase 4 { 5 public... 阅读全文