I am new to ASP.Net, so I am not exactly sure if the above description is an accurate description of my problem.
I have 3 separate web user controls that produce similar information from my database in a gridview control. The controls list Case Manager data information filtered by (control 1) Office Location, (control 2) State Region, or (control 3) Team. Each control rests on its own page and has a dropdown list with appropriate options to filter by. So from the Case Manager menu, staff can select the link to view Case Managers by the preferred filtering method. On the Filter by Team page, the dropdown list contains the different team names, on the Region page the list contains the various State Regions, and the Office page contains the office designations.
Everything works fine until you switch from one filtering method to another. For example, if go to the filter by Team page first, the data will refresh in the gridview control correctly for however long I keep making selections. But if I then navigate to the filter by Region page, the data in the gridview will not correctly reflect the selection. If I then navigate back to the Team page, it will not reflect correct information in the gridview either.
What appears to be happening is that when I navigate from the first page to the subsequent page, the gridview control is applying the filter ID from the dropdown list to the previous field to filter by. So when I navigate from filter by Team to filter by Region, even though my dropdown list now contains Regions, the ID being refernced is applied still being applied to the TeamID field in the data. Then, when I navigate back to the Team filter page, it begins to apply the filter ID to the RegionID field.
I will post code if asked, but since the code for this is relatively extension, I think it will be more helpful initially if any of you could help me brainstorm on what may be causing this problem. I have to believe this has come up before.
I am stumped. I have rewritten this code so many times in the last week, I can almost do it blindfolded. If anyone has any insight, I would certainly appreciate it.
Thanks!
I have 3 separate web user controls that produce similar information from my database in a gridview control. The controls list Case Manager data information filtered by (control 1) Office Location, (control 2) State Region, or (control 3) Team. Each control rests on its own page and has a dropdown list with appropriate options to filter by. So from the Case Manager menu, staff can select the link to view Case Managers by the preferred filtering method. On the Filter by Team page, the dropdown list contains the different team names, on the Region page the list contains the various State Regions, and the Office page contains the office designations.
Everything works fine until you switch from one filtering method to another. For example, if go to the filter by Team page first, the data will refresh in the gridview control correctly for however long I keep making selections. But if I then navigate to the filter by Region page, the data in the gridview will not correctly reflect the selection. If I then navigate back to the Team page, it will not reflect correct information in the gridview either.
What appears to be happening is that when I navigate from the first page to the subsequent page, the gridview control is applying the filter ID from the dropdown list to the previous field to filter by. So when I navigate from filter by Team to filter by Region, even though my dropdown list now contains Regions, the ID being refernced is applied still being applied to the TeamID field in the data. Then, when I navigate back to the Team filter page, it begins to apply the filter ID to the RegionID field.
I will post code if asked, but since the code for this is relatively extension, I think it will be more helpful initially if any of you could help me brainstorm on what may be causing this problem. I have to believe this has come up before.
I am stumped. I have rewritten this code so many times in the last week, I can almost do it blindfolded. If anyone has any insight, I would certainly appreciate it.
Thanks!