《ASP.NET+SQL Server网络应用系统开发与》光盘


《ASP.NET+SQL Server网络应用系统开发与实例》这本书的全部光盘代码,供大家交流学习!
资源截图
代码片段和文件信息
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace B2CShop
{
/// 
/// Summary description for AddUserOrCompany.
/// 

public class AddUserOrCompany : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox Description;
protected System.Web.UI.WebControls.TextBox Address;
protected System.Web.UI.WebControls.TextBox Telephone;
protected System.Web.UI.WebControls.TextBox Email;
protected System.Web.UI.WebControls.RadioButtonList KindInfo;
protected System.Web.UI.WebControls.Button AddInfo;
protected System.Web.UI.WebControls.TextBox Password;
protected System.Web.UI.WebControls.TextBox PasswordStr;
protected System.Web.UI.HtmlControls.HtmlGenericControl title;
protected System.Web.UI.WebControls.Panel DescnPanel;
protected System.Web.UI.WebControls.TextBox InfoName;

public String sKindName = ““;

private void Page_Load(object sender System.EventArgs e)
{
// Put user code to initialize the page here
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// 
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// 

private void InitializeComponent()
{    
this.KindInfo.SelectedIndexChanged += new System.EventHandler(this.KindInfo_SelectedIndexChanged);
this.AddInfo.Click += new System.EventHandler(this.UpdateInfo_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void UpdateInfo_Click(object sender System.EventArgs e)
{
if(Password.Text == PasswordStr.Text)
{
if(KindInfo.SelectedIndex == 0)
{
UserDAL user = new UserDAL();
user.AddUser(InfoName.TextPassword.TextAddress.TextTelephone.TextEmail.Text);
}
else
{
CompanyDAL company = new CompanyDAL();
company.AddCompany(Description.TextInfoName.TextAddress.TextTelephone.TextEmail.Text);
}
Response.Write(“ript>alert(“添加新的“ + sKindName + “帐户成功!“)ript>“);
}
else
{
Response.Write(“ript>alert(“两次输入的密码不相同,请重新输入!“)ript>“);
}
}

private void KindInfo_SelectedIndexChanged(object sender System.EventArgs e)
{
if(KindInfo.SelectedIndex == 0)
{
sKindName = “用户“;
DescnPanel.Visible = false;
}
else
{
sKindName = “公司“;
DescnPanel.Visible = true;
}
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1067520  2004-09-05 14:19  第8章TestNewsDB(数据库)

     文件       2781  2004-09-05 11:16  第8章TestNewsAssemblyInfo.cs

     文件       2946  2004-09-05 14:10  第8章TestNewsDefault.aspx

     文件       2890  2004-09-05 14:09  第8章TestNewsDefault.aspx.cs

     文件       5317  2004-09-05 13:56  第8章TestNewsDefault.aspx.resx

     文件         75  2004-09-05 11:16  第8章TestNewsGlobal.asax

     文件       1474  2004-09-05 13:45  第8章TestNewsGlobal.asax.cs

     文件       1733  2002-01-29 22:04  第8章TestNewsGlobal.asax.resx

     文件        356  2004-09-05 11:35  第8章TestNewsHeadBanner.ascx

     文件        996  2004-09-05 11:35  第8章TestNewsHeadBanner.ascx.cs

     文件       5317  2004-06-07 11:02  第8章TestNewsHeadBanner.ascx.resx

     文件       1777  2004-09-05 14:06  第8章TestNewsShowNews.aspx

     文件       1854  2004-09-05 14:06  第8章TestNewsShowNews.aspx.cs

     文件       5317  2004-09-05 14:06  第8章TestNewsShowNews.aspx.resx

     文件        594  2004-09-05 11:33  第8章TestNewsTailBanner.ascx

     文件        935  2004-09-05 11:59  第8章TestNewsTailBanner.ascx.cs

     文件       5317  2004-03-17 14:27  第8章TestNewsTailBanner.ascx.resx

     文件      18876  2004-09-05 13:57  第8章TestNewsTestNews.csproj

     文件        114  2004-09-05 11:22  第8章TestNewsTestNews.csproj.webinfo

     文件       7226  2004-03-17 12:52  第8章TestNewsTestNews.css

     文件        927  2004-09-05 11:57  第8章TestNewsTestNews.sln

    ..A..H.      8704  2004-09-05 14:16  第8章TestNewsTestNews.suo

     文件        939  2004-12-27 20:45  第8章TestNewsWeb.config

     文件      57344  2004-09-05 14:14  第8章TestNewsinTestNews.dll

     文件     126464  2004-09-05 14:14  第8章TestNewsinTestNews.pdb

     目录          0  2008-03-31 12:57  第8章TestNewsin

    ...D.H.         0  2008-03-31 12:57  第8章TestNews\_vti_txt

    ...D.H.         0  2008-03-31 12:57  第8章TestNews\_vti_script

     文件        112  2004-09-05 11:16  第8章TestNews\_vti_pvtaccess.cnf

     文件        324  2004-09-05 11:16  第8章TestNews\_vti_pvtdeptodoc.btr

............此处省略1749个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)