Viewing the ‘ASP.NET’ Category


Maintaining scroll position in ASP.NET 2.0

08.20.2007

While I have often vented my frustrations with how difficult it can be working with DHTML in ASP.NET, Microsoft has taken a great step in helping developers make the transition to their primarily postback-based framework. To explain, one reason why I love DHTML so much is that I hate having to post back to the server just to dynamically add/remove a text box or show/hide a particular div. What makes posting back worse is that when you get the regenerated page, the user’s browser jumps back to the top of the page. Continue reading »


DBNull can’t be converted to Null? .NET 2.0 drops the ball on Nullable Types

06.27.2007

Recommended Reading:
Nullable Generic Structure

One giant leap for mankind that Microsoft proposed for .NET 2.0 (specifically VB) was the concept of Nullable types. Unfortunately, reportedly due to time constraints, Microsoft was unable to implement full support for them. To understand the concept, you can just google “Nullable Types” or check out the link above. I’ll give you the quick, trimmed-down version. Continue reading »


Changing Columns in the Visual Studio DataSet Designer

06.26.2007

Recommended Reading:
New DataSet Features in Visual Studio 2005

New to Visual Studio 2005, Microsoft has included the new DataSet Designer that is supposed to automate many of our data access tasks and to replace most, if not all, of the data layer in N-tier applications. To be honest though, I think they missed the boat on convenience. Continue reading »


Dynamic Controls and Managing ViewState

06.24.2007

Suggested Reading:
Understanding ASP.NET View State

Recently I’ve started learning ASP.NET (VB) in order to develop an application assigned to me at ExxonMobil. I have previously worked with ASP Classic, but the .NET framework is fairly new to me, so I’m just picking up on the architecture and how Microsoft is trying to take over my code and make things easier for me. Don’t get me wrong, I think .NET is a step in the right direction. It absolutely does a better job of following the model-view-controller design pattern by almost forcing you to keep your design code split from your logic. With that in mind, there are certainly accompanying downfalls, which I’ll talk about in this post. Continue reading »