.NET

System.Diagnostics.Debug.Assert

Posted on March 28, 2009. Filed under: .NET, C#, best practice, programming | Tags: , , |

Checks for a condition and displays a message if the condition is false.
Assert(Boolean) Checks for a condition and outputs the call stack if the condition is false.
Refer: http://msdn.microsoft.com/en-us/library/system.diagnostics.debug.assert.aspx
One advantage of Debug.Assert() is that the C# and VB compilers (not C++) eliminate the Debug.Assert() statement from the CIL code when the DEBUG precompile constant is not [...]

Read Full Post | Make a Comment ( None so far )

Exporting Data: Creating XML Files using C#

Posted on August 19, 2008. Filed under: .NET, ASP.NET, C#, XML, XSD, programming | Tags: , , , , |

When you want to export data, you can choose formats such as XML or csv for the data files. The XML format is more widely used for its flexibility and is desirable by many systems to be able to process the data. This article explains how to create xml files from C# classes.
Situation: Where would [...]

Read Full Post | Make a Comment ( 28 so far )

ASP.NET 2.0: Populating a Datalist using a T-SQL Stored Procedure & Datalist Custom Paging

Posted on July 21, 2008. Filed under: .NET | Tags: , |

Highlights:
- Dataset with 2 tables
- Custom paging on the Datalist
- Stored Procedure returns only the records needed for a page. This is useful when the table has thousands of rows
- Source code in both VB 2005 and C# 2005
Source Code Snippets: VB 2005, C# 2005, T-SQL, web.config
To see the demo, please go to: http://www.jotnow.net
VB 2005:
DataList:
<asp:Literal [...]

Read Full Post | Make a Comment ( None so far )

    About

    My stuff about .NET, C#, ASP.NET, AJAX, Visual Studio, SQL Server, XML, Web Services, WCF, WPF, WF, CRM, etc.

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...