123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- 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 + "<br>");
- strFiledName = strFiledName.Substring(1, strFiledName.Length - 1);
- // Response.Write("A="+strFiledName+"<br>");
- Session.Add("Fieldlist", strFiledName);
- // Response.Write(Session["Fieldlist"].ToString());
- Response.Redirect("~//Admin//BatchExport2.aspx");
- }
- }
|