Archive for July, 2010

Posted by admin at 19 July 2010

Category: Uncategorized

The problem: no .csproj file in websites

The solution: http://www.dotnetsizzler.com/post/Using-MS-Build-in-ASPNET-Website.aspx Add a proj file to the website, and set up the build to use it.  http://en.csharp-online.net/MSBuild:_By_Example%E2%80%94Dealing_with_MSBuild_Errors

Posted by admin at 12 July 2010

Category: Uncategorized

Here are a few ways to get the value of an asp textbox

  1. document.getElementById(‘<%=Test.ClientID%>’).value
  2. <%=txtMyTextBox.ClientID%>
  3. Response.Redirect(“Form2.aspx?name=” + txtName.Text + “&num=” + txtStNum.Text );

Posted by admin at 12 July 2010

Category: Testing

Pex automatically generates test from Visual Studio code editor. It tries interesting sets of input and output of a method. This provide a high level of test coverage automatically. Currently it is a Visual Studio add in for testing .NET Framework Applications

Moles supports Unit Testing by isolation with detours and stubs.

http://research.microsoft.com/en-us/projects/pex/

You can try it out online with no install at: http://www.pexforfun.com/