We're looking to hire solid ASP.NET developers - If you think you gots the skills to hang with us submit your resumes.

newtelligence AG ist ein führender Provider für Softwareentwickler-Services mit Standort in Korschenbroich, Rheinkreis Neuss. Wir unterstützen unsere Kunden in Europa mit Beratung, Architekturentwürfen und –reviews, Coaching, Projektbegleitung und Workshops im Bereich der Microsoft .NET-Technologien.  Wir suchen talentierte Junior Developer mit professioneller Erfahrung für unser Team von Beratern, Trainern und Entwicklern. Wenn Sie auf mindestens ein Jahr Erfahrung in kommerzieller Softwareentwicklung verweisen können und tiefgehende Kenntnisse im Bereich der Microsoft .NET-Plattform haben, möchten wir Ihnen gerne unsere offenen Positionen im Bereich Consulting und Kleinprojekt-Entwicklung vorstellen. Kenntnisse sind insbesondere in den Bereichen ASP.NET (C# oder VB) erwünscht. Erfahrungen in den Bereichen Web-Services, Life-Cycle-Tools sowie in COM, VB und Datenbanken sind von Vorteil. Was wir noch erwarten: Sehr gute Kommunikationsfähigkeiten in Deutsch und Englisch (schriftlich wie mündlich) Sowohl Teamfähigkeit als auch selbständiges Arbeiten unter minimaler Anleitung Verantwortungsbewusstsein Flexibilität Reisebereitschaft Belastbarkeit  

Lennybacon says #1: Exceptions and ValidatorControls

I often get asked things through my messenger and today I decided to start sharing a few lines of the conversations...    Frank: Is there a way to connect a Validator to an Exception so that the validation summary can be used to display the exception message? Lennybacon says: 1. build a Custom Validator Frank: Ok Lennybacon says: 2. Use Page_Error or catch to set a "flag" to the Validator Lennybacon says: 3. override the method EvaluateIsValid and return the state of the flag Lennybacon says: This way the validator (if called on the postback) indicates its validation as true and after the flag is set false. Lennybacon says: Here is some pseudo-code Lennybacon says:        try        {          CriticalOperation();        }        catch(MyException e)        {          MyValidator.SetInvalid();          MyValidator.ErrorMessage = "bla bla: " + e.Message;          Page.Validate();        } Lennybacon says:        Validator : CustomValidator        {           bool flag = true;           void setInvalid(){flag=false;}           bool EvulateIsValid()           {                return flag;           }        }   http://www.staticdust.net/downloads/Web.ExceptionVisualizer.zip

Executing CREATE statements from within Visual Studio 2005

If you try to run a CREATE statement in a query (right click on a database in the Server Explorer) you receive this message. So i wrote a small utility which will do the job for me. using System; using System.IO; using System.Data.SqlClient; using System.Collections.Generic; using System.Text; using System.Windows.Forms;   namespace MdfExec {     class Program     {         static void Main(string[] args)         {             string _cnStr;               if (args.Length == 2)             {                 _cnStr =                     "data source=.\\SQLEXPRESS;Integrated Security=SSPI;" +                     "AttachDBFilename=" + args[1] + ";User Instance=true;";             }             else             {                 OpenFileDialog fd = new OpenFileDialog();                   fd.AddExtension = true;                 fd.DefaultExt = ".mdf";                 fd.ShowDialog();                   _cnStr =                     "data source=.\\SQLEXPRESS;Integrated Security=SSPI;" +                     "AttachDBFilename=" + fd.FileName + ";User Instance=true;";             }               using (SqlConnection _cn = new SqlConnection(_cnStr))             {             using(SqlCommand _cmd = _cn.CreateCommand())                    {                     using (StreamReader fs = File.OpenText(args[0]))                     {                         _cmd.CommandText = fs.ReadToEnd();                         _cmd.Connection.Open();                         _cmd.ExecuteNonQuery();                     }                    }             }         }     } }   You can now right click on a *.sql file choose "open with ..." and select MdfExec.exe to execute the SQL statement. Since there is no second parameter (but needed to define to which database to connect) a OpenFileDialog will prompt:   Happy coding

Customizing the Prop Snippet

I'm quite busy with a project I'm on with Clemens (the last before he'll join the Indigo team at Microsoft) - just to explain why it got bit quiet around me :-) Here is a modified version of the prop snippet that I want to share ( and remember :-P ). <?xml version="1.0" encoding="utf-8" ?> <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">       <CodeSnippet Format="1.0.0">             <Header>                   <Title>prop</Title>                   <Shortcut>prop</Shortcut>                   <Description>Code snippet for property and                   backing field</Description>                   <Author>Microsoft Corporation</Author>                   <SnippetTypes>                         <SnippetType>Expansion</SnippetType>                   </SnippetTypes>             </Header>             <Snippet>                   <Declarations>                         <Literal>                              <ID>type</ID>                               <ToolTip>Property type</ToolTip>                              <Default>int</Default>                         </Literal>                         <Literal>                              <ID>property</ID>                              <ToolTip>Property name</ToolTip>                              <Default>MyProperty</Default>                         </Literal>                         <Literal>                              <ID>field</ID>                              <ToolTip>The variable backing this                              property</ToolTip>                              <Default>myVar</Default>                         </Literal>                   </Declarations>                   <Code Language="csharp"><![CDATA[#region $property$             // This field holds the $property$       private $type$ $field$;         /// <summary>Gets/sets the $property$.</summary>       /// <value>A <see cref="$type$">$type$</see>       /// containing the $property$.</value>       /// <remarks>This property gets/sets the $property$.</remarks>       [System.ComponentModel.Description("Gets/sets the $property$.")]       public $type$ $property$       {             get { return $field$;}             set { $field$ = value;}       }       #endregion       $end$]]>                   </Code>             </Snippet>       </CodeSnippet> </CodeSnippets>

Complex Databinding

I just finished writing some ASP.NET code where I also typed the following lines:  <ItemTemplate> <asp:Image ID="IsOnline" runat="server" ImageUrl='<%# GetImageUrl((MembershipUser)Container.DataItem) %>' /> </ItemTemplate> ... protected string GetImageUrl(MembershipUser user) { if (user.IsLockedOut) { return "~/images/BadUser.gif"; } else if (!user.IsApproved) { return "~/images/GreyUser.gif"; } else if (user.IsOnline) { return "~/images/OnlineUser.gif"; } else { return "~/images/OfflineUser.gif"; } } Before I shutdown my machine I fetchted Mail and Feeds when i ran accross this posting by ScottGu pointing to Fritz Onions Blog. ;-)

Friday Night Andreas Hoffmann 2nd Lead Of The VfLNiederRhein User Group Picked Me Up Ad We Drove The Long Way Down To The

Friday night Andreas Hoffmann (2nd lead of the VfL-NiederRhein user group) picked me up ad we drove the long way down to the south.   Our destination for Saturday morning was the “Chaostage” event of the .NET user group Deggendorf  (http://dotnet-deggendorf.sefnet.de/). I had a session “Introducing the concepts and architecture of ASP.NET“ in the morning and a second one “Hello WebServices – Message-Oriented Programming for distributed systems” in the evening. We checked in at our hotel in Garching (I won’t tell the name but I’ll tell you a bit about the worst service). Because the waitress served me frozen potatoes with my steak I stood up and walked over to the bar. Just in this moment a voice behind me asked “Is this a codezone keychain? Are you gonna be at Microsoft on Monday?” It was Nicki Wruck (http://spaces.msn.com/members/icebloginfo/PersonalSpace.aspx) the organizer of the ICE 2005 Community together with Frank Solinske (http://spaces.msn.com/members/solinske/PersonalSpace.aspx) IT-Pro Security Guru. Only one nano-second later we drank the first beer together. The geek meet was so exciting that I was just about to forget the bad service of our hotel J Sunday we fetched Stephan Oetzel (http://stephanon.net/) in Poing. We picked up Michael Willers (http://www.staff.newtelligence.net/michaelw/) Developer Security Guru from the Airport to merge the Security guys in the “Hofbräukeller”. Uwe Baumann (http://blogs.msdn.com/uweinside/) discussed about technical stuff with Andreas and me meanwhile. Later Nicki joined us together with Nico Lüdemann (https://www.openbc.com/hp/Nico_Luedemann/) and Carola Helfert (https://www.openbc.com/hp/Carola_Helfert/). Monday - Launch Day – started with the Community GetTogether. Stephan and Andreas and I presented the results of the .NET Summit NRW (our community event). As always the time to do some “networking” was toooooooo short - even if we had at least the day before to talk to a few guys. The Launch Party was great. Steve Balmer’s Launch talk was transmitted per satellite into the Lobby of Microsoft in Germany – Great. The only problem again: So many people and such a small amount of time :-) 

Code like i want to see it with ASP.NET 2.0

A short statement additional to my post against the spagetti code because I think Scott got me wrong: The Object Data Source is one of the coolest things out there cause it's never been so easy to use n-tier applications and bind custom business objects to databound controls. And this is exactly what I tell the folks out there in my articles and talks.

ASP.NET Features vs Real Applications

The most important thing to point out whenever I talk about ASP.NET 2.0 data-driven applications is:     "With the SqlDataSource and GridView or   DetailView controls you can         quickly build up tiny applications that just      need to be set up asap.       This has to do nothing with REAL   best practice applications!" Therefore I was pretty happy to read "The Code Spaghetti generation is back" in Pascal Leloup's Blog (Help .NET). Here is my statement: