Category Archives: ASP.NET

OpenCover and ReportGenerator Unit Test Coverage in Visual Studio 2013 and 2015

The usual choices for getting code coverage metrics in Visual Studio is to buy the Enterprise version of Visual Studio or buy the dotCover third party tool, both of which are costly, especially if you are developing small applications yourself … Continue reading

Posted in ASP.NET, Unit Testing, Web API | Leave a comment

Setting SSRS Report Parameters from ASP.NET C# Code

It is sometimes necessary to customise SSRS (SQL Server Reporting Services) reports at runtime and one way of achieving this is through the use of report parameters. One reason for doing this might be to customise the report title, column … Continue reading

Posted in ASP.NET | Tagged , | Leave a comment

Back Button issue after Logout in ASP.NET

This is the code most of us would normally use when logging out a user: FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); A frequent problem is that after a user logs out of their application using this code or similar, if they then use the … Continue reading

Posted in ASP.NET | Tagged | Leave a comment

Preventing a User From Having Multiple Concurrent Sessions

This article is largely based on information learned within the book “Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB” by Bilal Haidar. A common question asked regarding ASP.NET is how can you prevent a user logging … Continue reading

Posted in ASP.NET | Tagged , | Leave a comment