Online C#/VB.NET Compiler!


Yes, you can now compile your C# or VB.NET code online, simply put your code in the provided text box and click “Compile Now” button. Compilr will compile your code and will provide you a link as well to download the compiled version of your code. Any error while compilation will display an error message on the page.


Tags: compiler, c#,

ASP.NET 2.0, 1 Database Server, 1 IIS 6.0 Web Server and 32,000 Concurrent Connections!


Markus Frind has posted his experience of using ASP.NET 2.0 for one of largest dating site in Canada. In his post, Markus is telling how he has addressed concurrency issues by switching to ASP.NET 2.0:

At this point there were a lot of concurrency issues, the site would slooow down and just keep getting slower as more people came on. After switching to 2.0 all those problems went away. Now when there are over 32,000 concurrent connections at peak the site does not slow down. There are however still problems. I find that once you pass 100 Pageviews/second threads timers start to not get called for no reason.

Microsoft ASP.NET 2.0 Performance

He Interestingly didn’t use any kind of caching to render pages. Every page call actually pulls content from the database.

Tags:, database, performance

Checking all CheckBoxes in a GridView


Scott Mitchell has written another fantastic article on the simple and clean implementation of providing the check/uncheck all functionality in the GridView control.

Link: Checking All CheckBoxes in a GridView

The only thing his implementation missing in the article is placing CheckBox in the header of the GridView, and using it to toggle rows CheckBoxes. I made a small modification to the existing code to add this feature:

 1 2 3 4 5 6 7 8 910111213141516171819202122232425
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    If Not Page.IsPostBack Then
        Dim dirInfo As New DirectoryInfo(Request.PhysicalApplicationPath)

        FileList.DataSource = dirInfo.GetFiles()
    End If

    'On every page visit we need to build up the CheckBoxIDs array

    For Each gvr As GridViewRow In FileList.Rows
        'Get a programmatic reference to the CheckBox control

        Dim cb As CheckBox = CType(gvr.FindControl("RowLevelCheckBox"), CheckBox)

        ClientScript.RegisterArrayDeclaration("CheckBoxIDs", String.Concat("'", cb.ClientID, "'"))

    '--modified code

    Dim checkAll As New CheckBox()
    checkAll.Text = ""
    checkAll.ID = "checkAll"
    checkAll.Attributes.Add("onclick", "ChangeAllCheckBoxStates(this.checked);")

End Sub

Tags:, grid

Snippet Compiler


Here is a useful .NET utility tool if you just want to do quick test your code and without requiring to launch VS.NET and creating a new project setup.

Snippet Compiler

Snippet Compiler

Snippet Compiler

Download: for .NET 2.0 | for .NET 1.1

  • It minimize to the system tray of task bar.
  • It can also builds WinForm EXEs, console EXEs or DLLs.
  • You can compile multiple C#, VB.NET ASP.NET code.
  • It can be used to store templates library as well.
  • IntelliSense for static members and method
  • You can also export your snippet in HTML format which can be post in your blog.

Tags: .net, c#, tool

Automating Your Builds With NAnt


NAnt is a powerful scripting tool designed for developers, software process engineers, and build specialists to create an automated, repeatable process for building their developed application. NAnt provides powerful XML-based scripting and some really cool features, as Jean-Paul Boodhoo explains in his series of post “Automating Your Builds With NAnt”, which can streamline your development and unit testing effort dramatically.

Automating Your Builds With NAnt – Part 1
Automating Your Builds With NAnt – Part 2
Automating Your Builds With NAnt – Part 3
Automating Your Builds With NAnt – Part 4
Automating Your Builds With NAnt – Part 5
Automating Your Builds With NAnt – Part 6
Automating Your Builds With NAnt – Part 7

Tags: .net, c#, tool

Pasting plain text from clipboard


You will love this nice little utility tool! When you copy the text from a web page or word document, Windows keeps the formatting as well with the text. Paste that text into any word processor and you end up with unwanted formatting as well with the pasted text. Well, this tool will simply remove those unwanted formatting and paste clean text instead from the clipboard. Isn’t it nice!



PureText 2.0

Tags: utlity, tool