ASP.NET
I have been working on getting around the concurrency issues that LINQ has while working with disconnected DataContext's in an nTier environment. I currently have a Timestamp field in all of my tables to act as a row version number to help LINQ keep track of what is going on with my data. Up to this point I haven't had any issues as I have been working with objects that were either stored in session/cache as whole objects or I have been reconstituting the object from a new DataContext prior to updating...
Hello all! I find myself looking at design patterns to see if there is anything new floating about. Of course the new MVC framework keeps popping up everywhere. While I have been aware that MS released the new MVC framework for ASP.NET a while ago, each time I have read about it I have found myself shying away from it in favor of MVP. I primarily didn't like the concept of ViewState being removed or the fact that we had to go back to the old ways of tossing variables into the sky via a post or get...
I felt the need to vent a little bit of frustration today as I spent an entire weekend trying my best to figure out how to get LINQ to SQL to support what I consider to be a fairly standard database design concept - many to many relationships. In my case I have a table of Permissions and a table of Accounts. Rather than storing a list of permissions in my Accounts table I simply wanted to store both Accounts and Permissions separately and then link them together with a linking table. I don't think...
Its always the little things in life! This was pretty easy...once I found it that is. this.Form.DefaultButton = this.ButtonControl.UniqueID
An issue came up today where we were wondering how to put a non-secured page in a secured web site using forms authentication. After a bit of research, I found that you can add this short snipet of code to your web config...and you have it - an annonymously accessible page in a secure site. ... <authorization> <deny users="?"/> </authorization></... <location path="enviaSMS.asmx"> <system.web> <authorization> <allow users="*"/> </authorization>...
WOW! I can't believe how much time I just spent trying to change the browser I use to debug with in Visual Studio. In visual studio 2003 I could have simply gone to File>Browse With. This (at first glance) no longer appeared to me. After some research I realized that I was in a "Web Application" project rather than a "Web Site" project. This appears to mean something very different to Visual Studio. So I created a quick "Web Site" project (something I never use any more for testability reasons)...