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 BhoirRank #599 · 4K reputationPosted Jun 13, 2015, 8:48 AM EDT
{
if (id == "HR Dept ID")
{
Response.Redirect(@"Your Page URL");
}
else if (id == "Finance Dept ID")
{
Response.Redirect(@"Your Page URL");
}
}
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 13, 2015, 4:31 PM EDT
{
if (id == "HR ")
{
Response.Redirect(@"Your Page URL");
}
else if (id == "Finance")
{
Response.Redirect(@"Your Page URL");
}
}