An application I’m working on requires a facebook style status system and I thought it would be good to include the “posted x minutes ago” text after the status. I’m sure my code is not the most elegant solution but it works so I thought I’d share.
If you’re using LINQ to SQL as your data provider then you will need to add a few extra steps to utilise Data annotations with ASP.NET MVC. If you have created your own objects then you can append annotations such as [DisplayName(“This is the display name I want in the view”)] directly to the object
I needed to get a number of random records from a table. This is a very quick and easy mechanism to use and will work on any table. To load a specific number of random records change the .First() function to be .Take(x) replacing x with however many records you need.
You may find yourself wanting to show and hide a section of your page from a button or a link. This is very easy with a little jQuery. All you need to do is have a triggering object (an a tag in my example) and a target object (a div in my example) You can
A frequent question asked by customers is how to reset the DotNetNuke Host users password if you can’t remember what it is. If you have access to the database this is a fairly easy process. Steps to reset a DNN Host password If you do not know the database details of your DNN database, login