Hi,
I want to make a web application in which, on administrator login all data will be displayed and on user login only entry form will be displayed on single form.I have only one database table. How will I do this? what will be logic for it. Plz, help me
Thanks
How to make single form for user and admin
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dorababu MekaRank #457 · 5.5K reputationPosted Sep 21, 2011, 8:58 PM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 21, 2011, 9:27 PM EDT
Sample idea
This is Admin
This is User
protected void Page_Load(object sender, EventArgs e)
{
divAdmin.Visible = false;
divUser.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "User")
{
divUser.Visible = true;
divAdmin.Visible = false;
}
else
{
divUser.Visible = false;
divAdmin.Visible = true;
}
}