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) [...]

ASP.NET Page Lifecycle (Reminder) :)

Probably a topic that we all consider about one of the most BASIC of all areas related to ASP.NET web development, but after some time has been gone by, how well can you say you remember it?  Let’s see here… two ways to look at it, the general lifecycle and of course the events driven from [...]

ASP.NET FileUpload Control, increase the upload limit.

Interesting to note… if you use the FileUpload control in ASP.NET, and you want to use it to upload large files, you’ll need to increase the upload size in your Web.Config otherwise the page will immediately default to a “cannot display” page in your browser… in your System.Web section, rememeber to modify the settings accordingly: [...]

Windows Server 2003 and ASP.NET

For the brain challenged people (like myself) that fall into the Win2003 IIS setup trap every single time! Just a little reminder… Windows Server expects you to turn on the enable ASP.NET in the Web Service Extensions area as such (Click for larger view):     And then you need to make sure that your [...]