Replacing Recursion with a Stack

Replacing Recursion with a Stack
I've been wanting to write about this for a long time and googling didn't return popular hits back then but just had time to write this but sharing nevertheless. In a number of programming interview guides (most notably that of Joel Spolsky) it has been mentioned that one of the ways (note: only one and ...

sp_executesql error with DDL statements (preventing SQL injection)

One of the requirement for an application I'm currently working on is for the end user of a web application/site to be able to create objects in the database. There are a number of objects that must be created or manipulated but for the sake of simplicity let's take for example creating a table with ...

TSQL SubQuery requires a Table Alias

Subqueries are essentially a query (or queries) inside another query. That is for example a SELECT statement inside another SELECT statement. There is already enough information available in the internet and written materials about subqueries including their common uses, when and how to use them (see bottom of post) and I will not elaborate on ...

SQL injection attacks – banner82 script

UPDATE (6/19/2008) : For both IT people and end users please spend time reading through (if not here then at least from other sites, just be sure you are aware nevertheless) if you aren't that aware yet since this exploit has been continually spreading despite numerous warnings already made in the web. For developers, please ...

Considerations for AJAX UpdatePanel, Page Methods and Web Services

I would not even pretend to be all knowing here but I couldn't stop myself from sharing this chain of interesting links which should remind all of us of the dangers of abusing UpdatePanels thinking that using it in any way will make our old non asynchronous pages work like magic. [more] My journey starting ...

Updating ASP cookie from ASP.NET (vice versa)

Updating ASP cookie from ASP.NET (vice versa)
You might encounter a case where updating an ASP (classic/3.0) cookie from ASP.NET code (or vice versa) doesn't work. That is despite updating the cookie value, the old value still remains. [more] I was working on a having an ASP page communicate some information to an ASP.NET (2.0) page and vice versa and since the ...

Link: Enterprise Library 4.0 download on MSDN

Enterprise Library 4.0 – May 2008 has been released and can be downloaded from the following link (in addition to it's CodePlex home ofcourse): http://www.microsoft.com/downloads/details.aspx?familyid=90de37e0-7b42-4044-99be-f8ecfbbc5b65&displaylang=en&tm

DotNetZip, open source ZIP library for .NET

We needed a library for creating and managing ZIP files and fortunately for us there is DotNetZip which I have encountered previously when going around CodePlex (as I use to do when there is a little free time). [more] It is licensed under Microsoft Public License, so you can use it free of charge, for ...

Link: Delaying Data Could Cut Net’s Carbon Footprint

Found this article from Microsoft Research Team. Delaying Data Could Cut Net’s Carbon Footprint It’s good to see how bigger companies do their part for the environment. Besides they won’t only be doing that but also help save companies from saving a lot and thus allocating more resources on more important things than wasted energy. ...

Button doesn’t postback after clicking Back Button in Firefox

I ran into this behavior (which I think is weird) where a button no longer posts back to ther server after I click on a the Firefox's back button. [more] I'm not sure if I'm missing some incorrect settings whatsoever but it works on IE7.  I'm hoping someone who runs into this might verify or ...