资源简介
使用数据库是sever 2000,开发工具是vs 2005是已经发布的网站,具有参考价值

代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Default : System.Web.UI.Page
{
baseClass bc = new baseClass();
protected void Page_Load(object sender EventArgs e)
{
if (!IsPostBack)
{
Label1.Text = new randCode().RandomNum(4);
this.GridView1.DataSource = sss(“tbsale“);
this.GridView1.DataBind();
this.GridView2.DataSource = sss(“tbrent“);
this.GridView2.DataBind();
}
}
public DataTable sss(string tb)
{
DataSet ds = new DataSet();
string str = “select top 8 * from “ + tb + “ order by id desc“;
ds = bc.GetDataSet(str tb);
return ds.Tables[tb];
}
protected void Button1_Click(object sender ImageClickEventArgs e)
{
string tb = null;
if(Radiorent.Checked == true)
tb = “tbrent“;
else
tb = “tbsale“;
string strSql = “select * from “+tb+“ where“;
if (DropDownList1.Text != ““)
{
strSql = strSql + “ corner=‘“ + DropDownList1.Text + “‘“;
if (structure.Text != ““)
{
strSql = strSql + “and structure = ‘“ + structure.Text + “‘“;
}
if (DropDownList2.Text != ““)
{
strSql = strSql + “ and type = ‘“ + DropDownList2.Text + “‘“;
}
if (TextBox3.Text != ““)
{
strSql = strSql + “ and price > ‘“ + TextBox2.Text + “‘ and price < ‘“ + TextBox3.Text + “‘“;
}
}
else if (structure.Text != ““)
{
strSql = strSql + “ structure = ‘“ + structure.Text + “‘“;
if (DropDownList2.Text != ““)
{
strSql = strSql + “ and type = ‘“ + DropDownList2.Text + “‘“;
}
if (TextBox3.Text != ““)
{
strSql = strSql + “ and price > ‘“ + TextBox2.Text + “‘ and price < ‘“ + TextBox3.Text + “‘“;
}
}
else if (DropDownList2.Text != ““)
{
strSql = strSql + “ type = ‘“ + DropDownList2.Text + “‘“;
if (TextBox3.Text != ““)
{
strSql = strSql + “ and price > ‘“ + TextBox2.Text + “‘ and price < ‘“ + TextBox3.Text + “‘“;
}
}
else
{
strSql = strSql + “ price > ‘“ + TextBox2.Text + “‘ and price < ‘“ + TextBox3.Text + “‘“;
}
if(Radiorent.Checked == true)
{
GridView2.DataSource = bc.GetDataSet(strSql tb);
GridView2.DataKeyNames = new string[] { “id“ };
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4381 2008-06-11 10:05 website\aboutus\credit.aspx
文件 415 2008-06-07 22:02 website\aboutus\credit.aspx.cs
文件 12316 2008-06-11 10:06 website\aboutus\idea.aspx
文件 413 2008-06-07 22:02 website\aboutus\idea.aspx.cs
文件 8671 2008-06-11 10:06 website\aboutus\intro.aspx
文件 414 2008-06-07 22:02 website\aboutus\intro.aspx.cs
文件 1553 2008-06-10 16:02 website\App_Code\ba
文件 2591 2008-06-07 22:02 website\App_Code\BusinessLogicla
文件 1127 2008-06-07 22:02 website\App_Code\BusinessLogicla
文件 5553 2008-06-07 22:02 website\App_Code\BusinessLogicla
文件 4795 2008-06-07 22:02 website\App_Code\BusinessLogicla
文件 2126 2008-06-07 22:02 website\App_Code\DataAccessHelper\GetSafeData.cs
文件 406 2008-06-07 22:02 website\App_Code\DataAccessHelper\SQLString.cs
文件 5955 2008-06-07 22:02 website\App_Code\DataAccessla
文件 1196 2008-06-07 22:02 website\App_Code\randomCode.cs
文件 1179648 2008-06-13 22:52 website\App_Data\db_news_Data.MDF
文件 1048576 2008-06-13 22:52 website\App_Data\db_news_Log.LDF
文件 4945 2008-06-07 22:02 website\bigforum\Images\from.gif
文件 4945 2008-06-07 22:02 website\bigforum\Images\lo.jpg
文件 9628 2008-06-07 22:02 website\bigforum\Images\logo.JPG
文件 5120 2008-06-07 22:02 website\bigforum\Images\Thumbs.db
文件 2598 2008-06-10 16:20 website\bigforum\Login.aspx
文件 2323 2008-06-07 22:02 website\bigforum\Login.aspx.cs
文件 12544 2008-06-07 22:02 website\bigforum\Register.aspx
文件 2044 2008-06-07 22:02 website\bigforum\Register.aspx.cs
文件 1526 2008-06-07 22:02 website\bigforum\st
文件 1788 2008-06-07 22:02 website\bigforum\TopicAdd.aspx
文件 1863 2008-06-07 22:02 website\bigforum\TopicAdd.aspx.cs
文件 2198 2008-06-07 22:02 website\bigforum\TopicDetail.aspx
文件 2422 2008-06-07 22:02 website\bigforum\TopicDetail.aspx.cs
............此处省略253个文件信息
相关资源
- ASP.NET实验室预约管理系统
- 毕业设计_房屋中介系统(C#版)
- ASP.NET客户管理系统(毕业设计 C#
- 学生宿舍管理系统(毕业设计 C#实现
- 资产管理系统源码(附数据库)毕业
- ASP.NET考勤管理系统(毕业设计)
- asp.net+IIS+sqlserver选课系统毕业设计全
- 在线购物系统 C# ASP.NET SQL Server2005 毕
- 图书管理系统C#+SQL 适合毕业设计含毕
- ERP实施方法论
- 电路绘图软件毕业设计
- asp.net/c#酒店客房管理系统(毕业设计
- ASP.NET的毕业设计软件及文档
- ASP.NET大学生就业管理系统源码
- C#版本图书管理系统.rar
- ASP.NET图书管理系统课程毕业设计源码
- winform项目-毕业设计项目
- 学生宿舍管理管理系统
- ASP.NET和ACCESS的网上投票系统 毕业设计
- ASP.Net大学生实习实训管理项目源码
- asp.net+sql个人网站(毕业设计)
- ASP.NET设计的车站售票系统+详细论文
- C#设计的企业人事工资考勤管理系统
- C#设计的电子邮件系统+论文+报告+源码
- 毕业设计----ASP.NET仓库管理系统
- ASP.NET学生选课系统
- ASP.NET学生点名系统设计与实现(论文
- 学生成绩信息管理系统源码+论文+文献
- ASP.NET+SQL学生二手物品交易系统(毕业
- 毕业设计音乐网站代码与论文
评论
共有 条评论