Category: .NET
SQL Injection-proof your integrated SQL search in ASP.NET 2.0
I had forgotten to add SQL Injection prevention logic when I integrated and implemented a SQL search function for my employer’s internal ASP.NET app. So in this post, I’m adding it for archival and sharing purposes. SQL injection is an attack in which malicious code is inserted into strings that are later passed to an instance of…
VS.NET 2005 Web Application Projects vs. Web Site Projects
In the first release of Microsoft Visual Studio 2005, Microsoft introduced a new web application model called the Web Site Project for C#, which had many differences with the old model. Riots ensued, and in VS 2005 SP1 they were forced to introduce the Web Application Project for C# that worked much the way the…
CLR has been unable to transition from COM context for 60 seconds
I was debugging an inherited multi-project WinForms application (from my co-worker and friend, Genaro Quismorio) today and came across this error twice (below), which was frustrating, annoying and very unproductive. This error occurred while stepping through a breakpoint [Debug.Break] in my WinForms code while looking for a bug. One fix I found on Google was…
Submitting bugs through BugzScout
I was tasked to develop a proxy-like web interface wherein our company’s Marketing group didn’t have to go to Fogbugz directly. To facilitate this, I wrote an ASP.NET Web Application that submits/POSTs to Fogbugz’s supplied ScoutSubmit.asp. FogBugz is a complete project management system for software teams. Designed by Joel Spolsky of Joel on Software fame,…
An extensive examination of data structures in .NET
Check out this great article by Scott Mitchell regarding data structures in .NET 2.0. It’s a six-part series that pretty much covers all that you’ll need to know. It goes like this: Part 1: An Introduction to Data StructuresPart 2: The Queue, Stack, and HashtablePart 3: Binary Trees and BSTsPart 4: Building a Better Binary Search TreePart…
Bind an XMLDataSource to a GridView control
On one of my ASP.NET 2.0 projects, I had to use an XML file as the data source for a GridView control. The problem was that I had never used this method before. But after doing some research, I found it to be very similar (and straightforward) to binding to a database – with the…