Today someone asked me what my opinion on webforms are or were, and sometimes I feel like the proverbial deer that gets caught with the light in his eyes. It probably seemed like I knew nothing about web forms, which is not entirely true. I mean I did a lot of my first ASP.NET programming [...]
In my post yesterday I mentioned that I would like to develop a session-less shopping cart through the use of web services and classes. Well, I changed my mind a bit because I am not sure if AJAX can maintain state. Can it? How will AJAX retain state? I’m not sure yet, so sessions it [...]
Continue reading about On that Session-less shopping cart issue
What is the idea behind unobtrusive JavaScript? What makes JavaScript unobtrusive? Does it mean removing any onlclick events in your markup and handling those click events with an approach as provided with jQuery? With jQuery its very (extremely) easy to traverse between DOM elements and its even easier associating events to elements and executing them. [...]
Continue reading about Unobtrusive JavaScript and a Session-less shopping cart
I have never used handlers (.ashx) files in any of my .NET web development projects, but this all changed in the last two days. The way I understand a handler is that it acts as a ‘process’ handler and does not write any output to the browser. Where would you use this? Well I used [...]
ASP.NET has a server control called a panel, which allows you to display other server controls or HTML elements inside it, and one of its properties is DefaultButton. By setting the DefaultButton to the ID of a button within the panel you basically set its default keyboard event that will fire the click event associated [...]
I am busy with a Silverlight video player at the moment, and what is interesting to note and understand is that Silverlight is heavily event-driven, as is ASP.NET and a lot of the .NET framework. You can attach event handlers to almost any object, from mouse event handlers to click event handlers. Having asked that [...]
I would be the first to admit that not a lot of people have heard or know about Silverlight, which is Microsoft’s rich internet plugin, which is an alternative to Adobe’s Flash. It is true that Flash has been around for a long time and that Silverlight will not dislodge Flash’s entrenched following and use. [...]
Continue reading about Nobody seems to know about Silverlight, for now
What seemed a little odd to me today was that SQL Server Express 2005 is download-able from two places. Both shows different file sizes. Another issues that needs clarity is ASP.NET and .NET framework versions. .NET 3.5 is an ‘extension’ of .NET 2.0 and replaces .NET 3.0. .NET 3.5 covers AJAX (Asynchronous JavaScript and XML) [...]
I susbscribe to The Code Project’s newsletter and today I got some great news, jQuery will be supported in Visual Studio 2008. Now this is some awesome news. Makes one wonder if the Microsoft AJAX library will become redundant. You can read the full article on Scott Gu’s website.
Both the GridView and DropdownList server controls provided in ASP.NET have DataSource and DataBind methods. This means that you could write the same code to populate both controls with data from a database. So first you would create a method for a class like this: public DataTable GetData() { string strSQL = “select * from [...]
Continue reading about Re-usable code for a Gridview and DropdownList