I have a question regarding the use of the Textbox in ASP.NET.
I have a download page with a button, so that when I click, the action of downloading data from a database(Mysql) to a database(Sql) is done. On the default page I have a TextBox field that has to display the last execution date of the download action.
How can i intercept that last execution date?
default page:
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
*// last execution date capture and display*
}
}
download page
protected void Button1_Click1(object sender, EventArgs e)
{
string server = "XXX";
string database = "XXX";
string uid = "XXX";
string password = "XX";
bool convert =true;
string MySqlConnStr = "SERVER=" + server + ";" + "DATABASE=" +
database + ";" + "UID=" + uid + ";" + "PASSWORD=" + password + ";" + "ConvertZeroDateTime=" + convert +";";
string SqlConnStr = "Data Source=XXX;" + "Initial Catalog=XXX;" + "User id=XXX;" + "Password=XX;";
DataSet SqldSet = new DataSet(); // SqlServer Dataset that holds Sql Server data
DataSet MySqldSet = new DataSet(); //MySql dataset that will be used to push data into MySql database
}