I was recently working on adding video playing capabilities to a client’s existing ASP.NET application. They had video files that had been uploaded by users, and they wanted to allow the users to be able to preview the files on the web. I found MediaElement.js to be a excellent solution for this: As long as […]
Below is a SQL script that can be used to delete a list of users from an ASP.NET membership database. It retrieves a list of users into a temporary table and then deletes the users from all the relevant tables in the database.
Recently I was trying to programmatically load the templates for the PasswordRecovery control. I thought it should be pretty straightforward: Put the contents of the template in an ascx file Assign passwordRecovery.UserNameTemplate to Page.LoadTemplate(“MyUserNameTemplate.ascx”) Should be a piece of cake right? Wrong. If the template is put directly in the ASPX page all works as […]
I needed to add caching to my data access routines to improve the performance of commonly accessed data. This is pretty straightforward: Check to see if the cache entry already exists If the cache entry does exist, return the cached value If the cached entry doesn’t exist, fetch the data and add it to the […]