C#
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 ......
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.ToString();
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> ......