I’m planning on doing a series of videos on multi-layer/multi-tiered architecture using LINQ, but before I get to that I thought it would be helpful to first discuss the advantages of multi-layered architectures.
I recently ran into a situation where I needed to store a DataRow object, which is not serializable, into a Session variable using the Session Server. As I mentioned yesterday, all sessions should be stored to either the Session Server or the SQL Session Server. This means that all of the objects being stored must be serializable.
Way back in ASP.NET version 1.1, I wrote one of my first asp.net web sites for a client that depended pretty heavily on session variables. Without getting into the arguments about the wisdom of using session variables in the first place. Let’s just say that we needed to store state information and that session variables were the best way to handle the issue.
We spent months working on the web site. Everything worked fine during development and even as we tested the application… on our local computers.
But, once we put the application up on the server. A shared server where a lot of other asp.net applications were also living, we suddenly found that the application would work, mostly. But, every once in a while the application would act like it couldn’t find the session variables we were trying to store. Continue reading “The case of the disappearing session variables”
One of the new controls that Visual Studio 2008 brings us is the ListView. Now, the ListView control is really several different controls all rolled into one. There is a lot to see with this control. So, today is just going to be a small introduction. We’ll come back another day and do a presentation that goes deeper than we have time for today. Continue reading “ListView and the DataPager”
. . . and other ASP.NET controls that the Validation controls can not be wired to.
The presentation today may be something you already know how to do. But, this question comes up repeatedly in my work as a .NET coach, which means there are still people who don’t know how to do this. There are other people who think they know how to do this but are hacking the solution. I encourage you to watch the video. My bet is that 80% of you that do will learn something you didn’t already know about the validation controls and how to use them properly.
Here’s the basic problem. There are controls in the .NET framework that can not be wired to the standard validation controls. The checkbox control is one example. You can’t use the RequiredFieldValidator because it has a value. It’s either true or false. And you can’t provide a RegularExpressionValidator or one of the others because it is a boolean value.