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 .

Manoj BhoirPosted Jul 8, 2015, 5:54 AM
{
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();
}
Durga VelusamyPosted Jul 8, 2015, 5:32 AM
Manoj BhoirPosted Jul 8, 2015, 5:19 AM
Raja TPosted Jul 8, 2015, 4:46 AM