I can only read from gridview. I want to pass the read file from the textbox upon the user logs in..
Here is my Data Access Tier
public static SqlDataReader GetInformation(string Username)
{
string sql = "Select Idno, Lname, Mname, Username, Password, ConPass, SchoolYear, TermGraduated from Graduates where Username = @username";
Open();
SqlCommand com = new SqlCommand(sql, con);
com.Parameters.AddWithValue("@username", Username);
com.CommandType = CommandType.Text;
SqlDataReader sdr = com.ExecuteReader();
Close();
return sdr;
}
And here is my Bussiness Logic Layer
public IDataReader GetInformation()
{
return DAT.GetInformation(this.username);
}
Then my presentation layer in form_load
b.Username = Session["Username"].ToString();
How can I transfer the data from the textboxes? The only thing I can do is to transfer it using a gridview. But how can I all transfer the data from the textboxes like "TextBox1, TextBox2, TextBox3, TextBox4, TextBox5..." And so on