G
Guest
Greetings all -
I have been working on this issue for a while now and it has been frustrating to the point where I'm reaching out to the gurus of .NET for any suggestions.
I have a webform where when a user selects an item from a dropdown box and attempts to run a report, if a date is not found in my database, it should return a message to the browser notifying a user that they must select another item to run the report against.
The problem comes in when I do find a valid item to run the report, my code redirects to another page to display the Crystal Report but when I hit the "Back" button, the old error message still displays.
I've tried clearing out the text in the label, setting the label's visibility to false as well as incorporating a custom validator control.............but when I try the custom validator, it does hide itself but then once the redirect to the .aspx file takes place, hitting the "Back" button shows the message still.
Any ideas to how I can set the error message to go away?
Much thanks and cheers,
J.B.
I have been working on this issue for a while now and it has been frustrating to the point where I'm reaching out to the gurus of .NET for any suggestions.
I have a webform where when a user selects an item from a dropdown box and attempts to run a report, if a date is not found in my database, it should return a message to the browser notifying a user that they must select another item to run the report against.
The problem comes in when I do find a valid item to run the report, my code redirects to another page to display the Crystal Report but when I hit the "Back" button, the old error message still displays.
I've tried clearing out the text in the label, setting the label's visibility to false as well as incorporating a custom validator control.............but when I try the custom validator, it does hide itself but then once the redirect to the .aspx file takes place, hitting the "Back" button shows the message still.
Any ideas to how I can set the error message to go away?
Much thanks and cheers,
J.B.