When you create a string with must have multiple line use the option Environment.NewLine and not the escape characters.
see
Thursday, October 29, 2009
Environment.NewLine
Friday, October 23, 2009
Some Anti campaigns
- Reduce FOR
- Reduce IF.
Convert VB.NET to C#
On this site some links can be found, for quick links for converting VB.NET to C# and vice versia.
Further there are some difference between those two languages. Some of these differences can be readen here.
Nested repeater programmatically
Create PDF in ASP.NET
Tuesday, October 13, 2009
Tip: Linq to SQL
I mostly use Linq to Objects, but when I am going to use Linq to Sql is will read these tips again:)
Monday, October 12, 2009
Tool SourceCodeOutliner
I am not yet using it. But I think I will give it a try for a couple of weeks.
Sunday, October 11, 2009
.NET Versions
In the next switch statement an example of using the Version property:
switch(System.Environment.Version.ToString())
{
case "1.0.3705.000" :
{
Response.Write(" (.NET 1.0)");
break;
}
case "1.0.3705.209" :
{
Response.Write(" (.NET 1.0 SP1)");
break;
}
case "1.0.3705.288" :
{
Response.Write(" (.NET 1.0 SP2)");
break;
}
case "1.0.3705.6018" :
{
Response.Write(" (.NET 1.0 SP3)");
break;
}
case "1.1.4322.573" :
{
Response.Write(" (.NET 1.1)");
break;
}
case "1.1.4322.2032
Overview of .NET versions from the Framework.
Friday, October 9, 2009
Reading attribute with ConfigurationElementCollection
I was programming a part of a configuration file like this
I will use the ConfigurationElementCollection.... so the
But getting the value of the title attribute on the
Wednesday, October 7, 2009
Google Webelements
With Google Webelements you can create a web element for your web site. On the page you can customize the web element and when you have entered all the settings you simply copy the html in your web site and your web element can be used on your web site.
Design conventions properties and methods
On the blog of Wesley Bakker I have read the following article. Most of this stuff is really basic, but it is always usefull to repeat this. So conform your code to the design conventions for properties and methods, when you do not some other developers which use your code can make wrong assumptions.
Monday, October 5, 2009
XMLSerializer and invalid XML
On the blog of Raj Kaimal I have read the following article about xml serialization.
The conclusion of this article is the existence of the System.Xml.XmlWellFormedWriter class which can be created with the XmlWriter.Create method.
Thursday, October 1, 2009
New Ajax Toolkit
In this article some new controls of the new ajax toolkit
Download the new release here:
http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804
Try the live demos here:
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/