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;
public partial class UpdateData : System.Web.UI.Page
{
LYS.UserData1 mydata = new LYS.UserData1();
protected void Page_Load(object sender, EventArgs e)
{
Session["ModifySQL"] = "Select * from TKJL";
string myURL = mydata.GetAddressUrl();
if (myURL.LastIndexOf("KeyF")<0)
{
Response.Write("");
Response.End();
}
string sql= Session["ModifySQL"] + " where ID= " + Request.QueryString["KeyF"];
mydata.BuildModifyForm(Panel1, sql , 8);
}
protected void ModifyData_Click(object sender, EventArgs e)
{
try
{
string sql = Session["ModifySQL"] + " where ID= " + Request.QueryString["KeyF"];
mydata.ModifyToDB(sql, Session["ModifyTableName"].ToString());
Response.Write("");
}
catch (Exception ex)
{ Response.Write(""); }
finally
{ }
}
}