Dynamically generating a list of videos for OSFLV Player with ASP.NET

  • April 13, 2010
  • James Skemp
I've had this code for a while, but here's some simple code to pull a listing of Flash videos (FLV) from a directory, display them in a drop down, and have a video player dynamically generated based on what's picked. This uses OSFLV Player, version 3 specifically, but can be tweaked for the current (as of this post) version 4.0. Default.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.

Read More

Connection String encryption (connectionString element) in ASP.NET

  • February 1, 2010
  • James Skemp
From what I've been able to determine, setting up an ODBC connection in Windows and using that for ASP.NET generally seems to be frowned upon. Instead, ASP.NET uses a Web.config file to store a number of settings, including all the connection strings you'll be using (whether you're using Windows authentication or user names and passwords). For example: <?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings> <add name="TestDatabase001Reader" connectionString="Data Source=192.168.56.102,1433;Initial Catalog=TestingDatabase001;User Id=DataReader;Password=DataReader" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> .

Read More

Simple Journal 1.0 Released

  • January 3, 2010
  • James Skemp
Version 1.0 of Simple Journal is now available for download. Simple Journal is meant to be exactly that; a very simple way to keep track of a journal. Simple Journal uses XML files to store entries, which are edited in HTML (uses TinyMCE for the WYSIWYG editor) and which allow supplementation and later updates. Download Simple Journal 1.0. To use Simple Journal extract the contents of the zip file to a directory and start _startCassini.

Read More

BlogEngine.NET running on Cassini Personal Web Server

  • November 12, 2009
  • James Skemp
While Cassini is a built-in Web server part of Microsoft Visual Studio, it's also available as a stand-alone application, thanks to the work of Dmitry Robsman. The current version can be downloaded from this post regarding version 3.5.0.2 but requires that you first build the solution (the code is available under a MS-PL license). Cassini++ is also available from Codeplex, and has GUI improvements, among other changes (but is based on an older 3.

Read More

Using SQLite as a membership, profile, and role provider in ASP.NET MVC

  • October 25, 2009
  • James Skemp
I'd really like to implement membership providers in my Web applications, but just don't have the user-base that requires SQL Server (Express), nor the memory on my production server. Having looked at SQLite before, I figured it would be exactly what I'd need, without going to the alternative of XML. After some research I found Roger Martin's SQLite Membership, Role, and Profile Providers, and finally decided yesterday to implement these on a dummy MVC site.

Read More

Review: Professional ASP.NET MVC 1.0

  • October 18, 2009
  • James Skemp
The following is a review of Professional ASP.NET MVC 1.0, written by Rob Conery, Scott Hanselman, Phil Haack, and Scott Guthrie. I received a free copy of this book for review purposes from Amazon Vine, but was planning on purchasing the book nonetheless (I just had the good fortune to get a copy before they were all taken). A great introduction to ASP.NET MVC Professional ASP.NET MVC 1.0 was my first real look at ASP.

Read More