I have developed an ASP.NET web application and I ran FXCop against my .dll in my bin directory.
I am receiving several Non Breaking "Do not pass literals as localized parameters" Errors.
Clicking on the link takes me to http://msdn2.microsoft.com/en-us/library/904d284e-76d0-4b8f-a4df-0094de8d7aac(vs.80).aspx
but I am still not certain on how to correct this notice.
For instance this aspx page contains three buttons which in return redirects the user to the appropriate report depending upon what button they clicked. The code below is flagged three times for the aforementioned "Do not pass literals..." error. I am using VB.NET as my langauge of choice.
Protected Sub Report1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Report1.Click
Protected Sub Report2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Report2.Click
Protected Sub Report3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Report3.Click
What is the proper way to either code the above or eliminate the error message from FxCop?