using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.OleDb;
using System.Collections;
public partial class Admin_BatchExport : System.Web.UI.Page
{
int i;
LYS.UserData1 myud = new LYS.UserData1();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
//myud.BindTableNameToListBox(TableList);
ListItem li=new ListItem();
li.Text="督导评价信息表";
li.Value="TkJL";
TableList.Items.Add(li);
}
protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
TableList.Visible = true;
string selTableName = TableList.SelectedValue.ToString();
myud.BindFieldNameToCheckBoxList(selTableName, FieldNameList);
}
protected void Button7_Click(object sender, EventArgs e)
{
string strFiledName = "";
for (i = 0; i <= FieldNameList.Items.Count - 1; i++)
{
if (FieldNameList.Items[i].Selected)
{ strFiledName = strFiledName + "," + FieldNameList.Items[i].Text; }
}
// Response.Write(strFiledName + "
");
strFiledName = strFiledName.Substring(1, strFiledName.Length - 1);
// Response.Write("A="+strFiledName+"
");
Session.Add("Fieldlist", strFiledName);
// Response.Write(Session["Fieldlist"].ToString());
Response.Redirect("~//Admin//BatchExport2.aspx");
}
}