i have login page have uesrid,password and registering in another one page it has name,address,phone,area,gender
and i do some activity in another screen go through by login
now i need if once i login and then doing some activity then go to next navigation screen here i need name,address,phone how to get this .


Raja TRank #685 · 3.5K reputationPosted Jul 8, 2015, 12:46 AM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jul 8, 2015, 1:19 AM EDT
Durga VelusamyRank #4,868 · 321 reputationPosted Jul 8, 2015, 1:32 AM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jul 8, 2015, 1:54 AM EDT
{
SqlCommand command = new SqlCommand(
"SELECT name, address FROM TableName;",
connection);
connection.Open();
SqlDataReader reader = command.ExecuteReader();
if (reader.HasRows)
{
while (reader.Read())
{
Session["name"] = reader.GetString(0);
Session["address"] = reader.GetString(1);
}
}
reader.Close();
}