Thea Burger's Blog

Wouldn't you like to know...

News

Photo's!!!

About me

I'm Reading: General Blogs

I'm Reading: Technical Blogs

Browse by Tags

All Tags » .NET (RSS)
Controls.Remove index change
Came across something now which was quite funny... I dynamically add controls to my form, and I also need the option to remove them again. So at first I did this, which seemed logic as it is exactly how I add them: foreach (Control c in this .Controls) { if (c.GetType() == typeof (TextBox)) { this .Controls.Remove(c); } } But this only removed every second textbox! At first I was dumbstruck, but then found out that when you remove a Control from the ControlCollection, subsequent controls are moved...
Posted: Aug 14 2006, 09:47 PM by Thea Burger | with 3 comment(s)
Filed under: ,
Can you recommend some books?
I've been asked to find books on the following topics. Can any of you recommend some of these books, or maybe other ones? SharePoint Portal Using Microsoft SharePoint Portal Server by Robert Ferguson SharePoint 2003 User's Guide (Expert's Voice) by Seth Bates, Tony Smith Microsoft Solutions Framework Enterprise Development with Visual Studio .NET, UML, and MSF by John Erik Hansen, Carsten Thomsen This one looks cool, but will only be available later...: The Microsoft Solutions Framework for Agile...
Posted: May 12 2006, 01:17 PM by Thea Burger | with 2 comment(s)
Filed under: ,
One Click configuration of Subversion!!! (Well, almost)
We've decided to give Subversion a go for the project that we are developing, so the mission started. Download, search for good tutorials, read a lot, try this, try that... We installed it, and started configuring it from the command line and then the problems started. Searched some more and then I came across this: The Subversion 1-Click Setup [ through Joe White's blog ] " The goal of this project is to simplify the process of setting up a Subversion repository on a Windows-based computer. Svn1ClickSetup...
Posted: May 11 2006, 08:58 PM by Thea Burger | with 1 comment(s)
Filed under: ,
NAnt does NOT support .NET 2.0
While setting up CruiseControl.NET , I created a NAnt build file to build the solution. I visited their site to make sure I have the latest version and was very happy to see that NAnt 0.85 nightly build support .NET 2.0 now. After everything was configured, I went to the dashboard only to see that my build failed. So I went back to command prompt to run NAnt from there, and the response I got? Buildfile: file: /// D:/Projects/NFP/build/NFP.build Target framework: Microsoft .NET Framework 2.0 Target...
Posted: May 11 2006, 08:00 PM by Thea Burger | with 2 comment(s)
Filed under:
MSDN Newsgroups Search - BUG!
I just wanted to search for C# posts on MSDN's Newsgroups, so I went to http://msdn.microsoft.com/newsgroups/ and typed "c#" as my search phrase, and what did it return...? NOTHING!!! Your query for "c#" did not return results. The following may help you find the results you were looking for: * Check your spelling. * Enter a term or phrase that's less specific. * Try different phrasing. * Try fewer words. And as I wrote this post I went back just to confirm and searched again... this time accidentally...
Posted: Apr 08 2006, 12:27 PM by Thea Burger | with no comments
Filed under: ,
Architecture Resources
At this moment I am supposed to draw up an Architecture Overview document for the project that I am working on, but I am stuck. It feels like I am brain dead at the moment... may have to do with the fact that it is Friday and I attended a company function for the past 2 days. Faritec acquired Enterprise Connection and the companies had a workshop on "Building a new Faritec together". I am quite interested to see what is going to happen with the 25,1% share EC has in NVisionIT, but only time will...
Posted: Mar 31 2006, 01:44 PM by Thea Burger | with no comments
Filed under:
Unzip files programmatically in C# - #ZipLib
So this was the first time I had to do this and I started to google... I was looking for a plain and simple way of unzipping a previously zipped file. The results included: System.IO.Compression that has been added in .NET 2.0 - used to compress and decompress streams. This didn't exactly look like what I wanted and a lot of work :P WinRAR add-on that contained an UnRAR.dll for Windows. Michael A. McCloskey created a wrapper class for this which makes it much easier to use, but unfortunately I ran...
Posted: Jan 17 2006, 07:24 PM by Thea Burger | with 22 comment(s)
Filed under:
VS 2005 & SQL Server 2005 Roadshow
So SQL Server 2005 and Visual Studio 2005 are going to be released in November (7th internationally). We South Africans can visit the roadshow on the following dates: 17th November: Johannesburg 22nd November: Durban 24th November: Cape Town Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Oct 10 2005, 03:34 PM by Thea Burger | with no comments
Filed under: , ,
Format TimeSpan Tip
Armand showed me a cool way to format a TimeSpan result: DateTime start = DateTime.Parse("2005/08/12"); TimeSpan elapsed = DateTime.Now.Subtract (start); Console.WriteLine("{0:D2}:{1:D2}:{2:D2}:{3:D2}", elapsed.Days, elapsed.Hours, elapsed.Minutes, elapsed.Seconds); Which will result in this: 41:17:03:01 Instead of this: 41:17:3:1 The Dx determines the amount of zero's. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Sep 22 2005, 05:38 PM by Thea Burger | with 2 comment(s)
Filed under:
Yeah!!! Some Tech Ed Speakers...
I assume if she’s blogging about it, I can as well :) Those of you who follow her blog would know, for those who don’t - famous blogger Julia Lerman is coming to South Africa for Tech Ed . She's going to talk about: - What's New in Web Services Enhancements (WSE) 3.0 - Introducing Indigo Integrated Innovation: - Using ADO.NET 2.0 with SQL Server 2005 And along with her we are going to see one of her friends and a top speaker at last year's Tech Ed: Kate Gregory . Her talks: - Microsoft...
Posted: Aug 26 2005, 01:49 PM by Thea Burger | with 5 comment(s)
Filed under: ,
Display XML on web page
Found this cool blog post on how to display formatted XML on a web page: Kirk Allen Evan's Blog . If you don't need to format the XML, very simple solution: just do a replace on the string you want to display. Replace the < and > with &lt; and &gt; :) Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Aug 18 2005, 04:28 PM by Thea Burger | with no comments
Filed under:
At home :)
Yeah! The company I work at had a power failure so we were able to go home early!!! And I only got there at 9... The best is Armand works a block from me, so now both of us are sitting at home and I have time to blog a bit. Yesterday we found a bug in our system where when a user refreshes the page the modal window opens which has been used already, instead of only refreshing the page. I didn't really look at it further as I scheduled time to work on it today. So last night when I got home I went...
Posted: Aug 18 2005, 04:12 PM by Thea Burger | with 4 comment(s)
Filed under: ,
Blogging Hiatus...
What a blogging hiatus!!! (I've always wanted to use that word ;)) I had a deadline last week and we made it - now we have entered our testing phase and the worst is over. It feels like this large weight has been removed from my shoulders. During this project I also realized how useful test driven development can be... no, we didn't use it, but I ran into a problem where I had to change a huge part of my DAL and I had to go through everything again to make sure everything works :( Now, if I was using...
Posted: Aug 01 2005, 08:32 PM by Thea Burger | with 5 comment(s)
Filed under:
Transform XML with XSLT, return XmlDocument
I used to use XSLT to transform XML that I get from an Oracle database and write the output to a file: //Transforms Xml with Xslt and write to file protected void TransformXmlToFile(XmlDocument xmlDoc, string xsltPath, string transformedXmlPath) { XslTransform transform = new XslTransform(); XmlTextWriter xmlWriter = new XmlTextWriter(transformedXmlPath); transform.Load(xsltPath); xmlWriter.WriteStartDocument(); transform.Transform(xmlDoc, Nothing, xmlWriter, Nothing); xmlWriter.Close(); } After...
Posted: May 10 2005, 09:25 PM by Thea Burger | with 2 comment(s)
Filed under:
IFRAME - loading pages dynamically
I wanted to load pages dynamically into an IFRAME, but then I realised that you can't access the src attribute from code-behind, not even if you add runat=server... Here is the solution: 1. Add runat=server to the IFRAME. 2. In the declarations section declare a HtmlGenericControl protected System.Web.UI.HtmlControls.HtmlGenericControl frame1; 3. Find your IFRAME :) HtmlControl frame1 = (HtmlControl)this.FindControl("frame1"); 4. Lastly, to access your IFRAME's src attribute: frame1.Attributes["src...
More Posts Next page »