What ASP.NET Developers Should Always Do

[Dino Esposito] ...Introduced with ASP.NET 1.1, ViewStateUserKey is a string property on the Page class that only few developers admit to be familiar with. Why? Let's read what the documentation has to say about it.[...]void Page_Init (object sender, EventArgs e) { ViewStateUserKey = Session.SessionID; } There will be a few more that are familiar with that now :-)

The UploadDialogControl v. 2.3.1.10088 and beyond

I currently working again on iFused (Internet File Upload Select and image Editing Dialog). Yesterday i released the version 2.3.1.10088: support for "~" as palceholder for the application path code optimization performance optimization I have a lot of things to do on based on the wishlist forum at staticdust and loads of mail in my inbox. This is what i plan to catch until 1st. of february: Use physical path outside of the application root as UploadDirectory Database as source for files and directorys

C# Image 2 ASCII

What i really like about the days between x-mas and new year is that you have time for things that you usually don't have time for. The stroy: I love my girlfriend. I likle C# and I like asciiart. So it happend that she showed me some ascii's. I asked myself if somebody has written some image to ascii in C#. I googled but found nothing. I did some image manipulation stuff for the company before x-mas and so I builded a basic image to ascii conversion library in C#.http://www.lennybacon.com/image2ascii/You can grab the source at : http://www.codeproject.com/aspnet/ascii_art_with_c_.asp

A class that can be added...

A class that can be added... public class Point { private int x, y; public Point(){} public Point(int xPos, int yPos){ x = xPos; y = yPos; } public static Point operator + (Point p1, Point p2) { Point newPoint = new Point(p1.x + p2.x, p1.y + p2.y); return newPoint; } } I just wrote that down to have it writen once ;-)

Enable clientside javascript events for the RadioButtonControl

using System.Drawing;using System.Drawing.Design;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;namespace StaticDust.Web.UI.Controls{    [Designer(typeof(RadioButtonDesigner))]    public class RadioButton : System.Web.UI.WebControls.RadioButton    {        protected override void Render(System.Web.UI.HtmlTextWriter writer)        {            System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();            System.IO.StringWriter stringWriter = new System.IO.StringWriter(stringBuilder);            HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);            base.Render(htmlWriter);            StringBuilder _javaScript = new StringBuilder();            IEnumerator keys = this.Attributes.Keys.GetEnumerator();            int i = 1;            string key;            while (keys.MoveNext())            {                key = (String)keys.Current;                if(key.Substring(0,2).ToLower()=="on")                {                    stringBuilder.Replace(key + "=\"" + this.Attributes[key].ToString() + "\" ", "");                    _javaScript.Append(key + "=\"" + this.Attributes[key].ToString() + "\" ");                }                i++;            }            stringBuilder.Replace("type=\"radio\" ", "type=\"radio\" " + _javaScript.ToString());            writer.Write(stringBuilder.ToString());        }    }}  

Another template based solution with ASP.NET 1.1

In the past weeks i have looked at several template based solutions for ASP.NET 1.1, because i can't wait for .NET 2.0. Region MasterPages and it's variations all around the webNo WYSIWYG/VS.NET support - No solution for me. Masterpages reinventedNice try, but i don't want to add so much lines to the code behind. I also realized SiteMesh.NET (http://joe.truemesh.com/blog/000275.html - hey Joe fix that damn JS error!!!), but i don't like that approach. So i decided to think about other concepts and wrote something that solves following for me: MasterPage WYSIWYG in VS.NET CodeBehind Other pages WYSIWYG in VS.NET CodeBehind ... with one line of code in the client pages. I'll talk about my solution on the VFL-NiederRhein UG Meeting in november or december. So if you are interested keep an eye open.

iFused 2.X

it's done - because of the loads of features i added in the last weeks (thanks to everybody who gave me feedback) it was necessary to redesign iFused from the architectural point of view and yes i polished the UI a bit. I hope you all like it - I LOVE FEEDBACK. http://www.staticdust.net/