Tag: ASP.NET

  • 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 headers, currency, number formats and date formats based on the user’s language settings.

  • 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 back button they are presented with pages from the application without having to login. The […]

  • 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 on more than once at the same time. Unfortunately, the nature of ASP.NET means that […]