I have a page which has an edit button. Now what i want to achieve is that if an Id belongs to the Hr department it should direct to a certain page and if an Id belongs to Finance department it should direct to another page (when the user clicks on this same edit button).
How can i do this?
Thank you in advance
Manoj BhoirPosted Jun 13, 2015, 12:48 PM
{
if (id == "HR Dept ID")
{
Response.Redirect(@"Your Page URL");
}
else if (id == "Finance Dept ID")
{
Response.Redirect(@"Your Page URL");
}
}
Pankaj Kumar ChoudharyPosted Jun 13, 2015, 8:31 PM
{
if (id == "HR ")
{
Response.Redirect(@"Your Page URL");
}
else if (id == "Finance")
{
Response.Redirect(@"Your Page URL");
}
}