ASP.NET 2.0
Posts about ASP.NET 2.0.
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.
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. :)
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
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!
At
Gridviewguy you can find some interesting articles about the gridview control (new in ASP.NET 2.0).