Sravani Reddy

Sravani Reddy

  • NA
  • 3
  • 437

Pass selected filter value from one page to another and return

Apr 24 2023 1:04 PM

-I have a center filter dropdown on index page cshtml.cs and it will show the respective audits created for that selected center

-After the filtered audits are populated, we select on editing the audit to select yes or no which goes to activity page

-once it goes to activity page, the center filter parameter is going away, so when we go back to the the audit lists it is going to all audits instead of filtered audits. 

-how to restore the selected center value from dropdown to activity page?

I tried setting  this in Audit page TempData["FilterCenterAudit"] = AuditCenterId;(AuditCenterId is value selected form dropdown)


Answers (3)