Category: .NET

  • PlaceHolder/Panel Visibility, ViewState on Security and Performance

    It is not unusual to see a solution where use of asp:Placeholder and asp:Panel Visibility is employed to show/hide certain details from the user. When implementing a simple Authorization/Permission features[more], it would also be tempting to use such approach. (mentioned simple since there are likely more complicated but better ways to do it) Of course…

  • Built-in ASP.NET Development Server cannot be accessed using non-localhost URL

    Alvin, a coworker of mine raised an interesting point about the ASP.NET Development Server (previously named "Cassini") hours ago. Forgive my ignorance but it seems that the said builtin server was constrained to be accessed only with localhost or 127.0.0.1 and [more]would not work when using your IP (non loopback) nor machine name. For IE…

  • Resolve Namespace (Visual Studio, Resharper)

    How do you "autogenerate" a "using" namespace for a class you typed in Visual Studio? Read along… [more] I've seen a couple of presentations (in-person, online et al), webcasts etc where there the presenter typed a class name, highlighted by Visual Studio because the namespace cannot be resolved (no using directive or class was not…

  • Issue with System.Transactions, SqlConnection and Timeout

    Just recently, a post was made in Microsoft Forums regarding a bug/behavior of Committable Transactions and SqlConnection timeout. The same issue is evident for TransactionScope which was posted in 2006. Good thing there is a fix[more] I have used TransactionScope a number of times including in one of my previous posts on Unit Testing (integration…

  • Link: Entity Framework and ADO.NET Data Services will RTM with Visual Studio 2008 and .NET 3.5 Service Pack 1

    The ADO.NET Team has just announced this in their blog. There is no definite release date for SP1 yet though. See the post from the following link: Entity Framework and ADO.NET Data Services will RTM with SP1

  • Installing Visual Studio 2005 Service Pack 1 – Performance Notes

    This is just a quick post as a heads up that installing Visual Studio 2005 SP1 takes a while depending on a number of factors[more]. But generally still takes a lot of time. It has been available for sometime but I just needed to install one into another machine and despite installing it into a…

  • Unit Testing Data Access with .NET TransactionScope

    I was curious how to maintain my database at a consistent state while unit testing (technically integration testing already – but since it uses unit testing framework as they say the lines are terminologies are getting blurry) so I looked around for "database unit testing" write ups. It turns out that [more]mbUnit has [Rollback] which…

  • My first bug catch with WatiN

    I caught my first bug (regression) because of WatiN and NUnit just now. Something I wasn't able to catch during my previous manual tests. [more] Two items that I run into but got over with: 1. AJAX (UpdatePanel). I show/hide controls with AJAX and previously finding elements by id had some issues if it's hidden…

  • Minimum Permission Required for Assembly

    A jumpstart on security your applications by determining and applying only the minimum required permissions. [more] I ran into this thread on Resetting your web application or web site without recycling app pool or IIS. just recently. The basic idea of the first option for achieving its goal is to call "HttpRuntime.UnloadAppDomain();". Interestingly there's a…

  • Wrox Blox – Professional ASP.NET 3.5 Upgrade

    I’ll hopefully (likely) be taking the ASP.NET 3.5 MCTS beta exam this week and though I’m quite aware that there are more than enough articles and videos in the web to review for the exam I just felt like treating myself to this wrox blox Professional ASP.NET 3.5 Upgrade. These are [more]selected chapters in their…