March 25, 2005

ConnectionString formats

This site gives a list of all possible ConnectionString formats. I don't have to remember them anymore. http://www.connectionstrings.com

March 08, 2005

Multiple ways to add SVG streams in .NET

The following are some of the ways to add SVG objects in a .NET application. In fact, the first two methods can be applied to plain old html files. When using aspx to generate SVG streams, make sure the stream starts with SVG data.

Embedding an svg object in HTML:
<embed name="svg" pluginspage="http://www.adobe.com/svg/viewer/install/" src="graph.svg" width="600" height="320" type="image/svg+xml">

Using ASPX to generate svg stream:
<object codebase="http://www.adobe.com/svg/viewer/install/" type="image/svg+xml" height="320" width="600" data="graph.aspx" name="svg>

Another way of using ASPX to generate svg stream:
<asp:image id="svg" height="450" width="450" imageurl="graph.aspx" runat="server">