protected void btnCancel_Click(object sender, EventArgs e)
{
if (Page.Request.QueryString["projectId"] != null)
{
Response.Redirect("ProjectsBugs.aspx?projectId=" + Page.Request.QueryString["projectId"]);
}
else if(OldBug != null)
{
Response.Redirect("ProjectsBugs.aspx?projectId=" + OldBug.ProjectId);
}
Response.Redirect("ProjectsBugs.aspx");
}