find_cl2.aspx.cs in 1.Netwebsite.Rar
Sponsored links
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;
using System.Data.OleDb;
namespace txl
{
/// <summary>
/// find_cl2 的摘要说明。
/// </summary>
public class find_cl2 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label lblNoSchool;
protected System.Web.UI.WebControls.TextBox txtSchname;
protected System.Web.UI.WebControls.TextBox txtScherea;
protected System.Web.UI.WebControls.TextBox txtSchzip;
protected System.Web.UI.WebControls.TextBox txtSchhttp;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;
protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator2;
protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator3;
protected System.Web.UI.WebControls.DataGrid dgdSch;
OleDbConnection cn;
OleDbCommand cmd;
OleDbDataReader dr;
OleDbDataAdapter da;
DataSet ds;
string strConn,strSQL,strUrl;
protected System.Web.UI.WebControls.Button btnNext;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if(Session.Count==0) Page.Response.Redirect("default.aspx");
else
if(Session["uid"].ToString()=="") Page.Response.Redirect("default.aspx");
strConn="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+Server.MapPath("txl.aspx");
strSQL="select school.s_id,school.s_name,prove.p_name,city.c_name,school.s_erea,s_num,classtype.t_name from school,prove,classtype,city";
strSQL+=" where c_id="+Page.Request["cid"].ToString();
strSQL+=" and t_id="+Page.Request["typ"].ToString();
strSQL+=" and p_id="+Page.Request["pid"].ToString();
strSQL+=" and s_cid="+Pa
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.