Category: ASP.Net

Apr 22 2009

Twaper Twitter Widget

Our local paper made some national news by becoming the nations first Twaper. When the site MountainX was visited on April 1st, users were presented with a number of twitter feed modules. Some of those feed widgets were filterable by twitter #hashtags.

I decided to recreate the twitter widget here.

Live Demo

Twaper Feed Module

The twitter.aspx page pulls down a copy of the twitter search results in Atom format. A XSL stylesheet converts the results to a friendly HTML format, which are then ported to a div tag using JQuery.

Download

Dec 08 2008

MySQL running under ASP.Net

With the status of the overall economy, I figured it would wise to research MySQL as a possible alternative to SQL Server for client development. It seems we all must do more with less, and MySQL being essentially free, it’d be worth checking out. 15Seconds does a great job explaining the install process of a new MySQL server. There are a ton of articles about the differences between SQL Server and MySQL and worth reading if you plan on implementing either in a production environment.

So I converted a Data Library that uses either MySQL or SQL Server based on the data provider you’ve specified in the web.config.

<connectionStrings>
<add name="MyDB"
connectionString="server=localhost; user id=uid;
password=pwd;
database=db; use procedure bodies=false"
providerName="MySQL.Data"/>
        </connectionStrings>

The library can execute and return datasets, datareaders, scalars and nonqueries using either Plain Text or Stored Procedures on either platform.

Dim dt As New Utilities.DataTools
dt.SetParam("?prm_ID", 0, ParameterDirection.Input, MySqlDbType.Int32, 1)
Dim ds as DataSet = dt.ExecSQLDataSet("
SELECT * From Table Where ID = ?prm_ID", CommandType.Text)
dt.Dispose()
dt = Nothing
MySQL - SQL Server DataTools

WordPress Themes