ASP.NET 2.0 (RSS)

Posts about ASP.NET 2.0.

So, whats up?

I haven´t had time to blog for a while, as you may have noticed, but I will do that asap.

I´m working on a very early alpha of a new version of the CZ Stats servce I used to work on before. For those who not know what it is, it is a web statistics service.

Some of the features I´m working on in the new version:
* RSS support with daily statistics for you site
* A windows vista sidebar gadget with daily statistics
* Weekly e-mail with statistics
* Enhanced api that allows youto show your statistics on your own site
* More detailed statistics
* Multi language support

And of course, it´s all free.

If you have any ideas, please let me now.
with 0 Comments

How to show an image from SQL Server database

First of all you need a field in your database with Image as datatype. Then use this code to show an image:

MemoryStream stream = new MemoryStream();
SqlConnection connection = new SqlConnection(WebConfigurationManager.ConnectionStrings["YourConnection"].ConnectionString);
try
{
connection.Open();
SqlCommand command = new SqlCommand("SELECT [image] FROM tblTable WHERE id = 12345", connection);
byte[] image = (byte[])command.ExecuteScalar();
stream.Write(image, 0, image.Length);
Bitmap bitmap = new Bitmap(stream);
Response.ContentType = "image/gif";
bitmap.Save(Response.OutputStream, ImageFormat.Gif);
}
finally
{
connection.Close();
stream.Close();
}

Good luck. :)
with 0 Comments

Code Calendar 2005 is up!

I am working on a calendar that will show a new code snippet every day until christmas (starting in december). So what I need to know now is what kind of snippets you would like to see there? Please leave me a comment. Code Calendar: http://www.mikaelsoderstrom.com/Projects/Calendar/ Code Calendar RSS Feed: http://www.mikaelsoderstrom.com/Projects/Calendar/rss.aspx
with 0 Comments

Testing out Atlas

I have been sitting here for a couple of hours with Atlas, and I love it! It works really good, and it´s easy to use it.

I have done a translater with it here:
http://www.mikaelsoderstrom.com/

That´s all for now, folks!
with 0 Comments

Atlas is here!

Microsofts Ajax project called "Atlas" is finally here!

I will try to write some tutorials as soon as my nerves are back to normal after this christmas-look-a-like-day. :)

Project Atlas
Project Atlas QuickStart

Atlas forums at www.asp.net

Installing the Hands-on Lab ASP.NET 'Atlas' Web Site Template
Installing the ASP.NET 'Atlas' Web Site Template

ASP.NET "Atlas" Preview Documentation

with 1 Comments

Articles about the new gridview control

At Gridviewguy you can find some interesting articles about the gridview control (new in ASP.NET 2.0).
with 0 Comments