Repeater DataBinder.Eval “Conditional” Expression

In VB.NET there is a useful IIF statement that let’s you do inline evaluations of expressions via conditional coding… but in C#, let’s just say it is “done differently”… a really useful difference to bare in mind is that those expressions CAN be evaluating using Ternary operators, such as: < %# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, “DateAdded”)) >= DateTime.Now.AddDays(-30) [...]

JSON .NET 3.5 Released!

I REALLY like this little add on here, developed and maintained by James Newton King.  Hopefully this post will help spread the word.  It’s plugins like these that really help web interoperability (if that’s a word hehe). This cool plugin can even serialize datasets/Datatables for passage across applications (if you’re not a Dataset hater of [...]

Partial Classes

Not a huge fan personally (more on that later), but at least if you’re interesting in knowing what the heck they are (like I was) when I first saw them, it’s been out a while now… but it’s new to .NET framework 2.0, here is a definition that I got out of the Self-Paced Training [...]

Inline code in your Sharepoint “Pages”.

Nice little tip here… Often I have wanted to use ASP.NET code right from within a page within Sharepoint Designer… by default, Sharepoint will not allow you to do that unless you “allow” it (which is reasonable). To enable inline asp.net code therfore in your sharepoint pages, add the following to your web.config file: < [...]