Try this |
| Sujit Patil replied to shreya verma at 08-May-08 12:46 |
May be this will help you;
you want to redirect a page depending on empType and on that page you want check wheather that is a emp or officer? if it is the case then you can do it like;
protected void btnLogin_Click(object sender, EventArgs e)
{
if (DDRole.SelectedValue == "User")
{
Session["userType"] = "User";
Response.Redirect("employeeProfile.aspx?id="+empid);
}
else
{
Session[ "userType"] = "Officer";
Response.Redirect("employeeProfile.aspx?id="+empid);
}
}
And you have stored usertype in Session to on that page u can chk that session value to show desire fields to emp or officer.
Best Luck!!!!!!!!!!
Sujit. |
|