data

There are 2 entries for the tag data

Databinding Tips: Nesting Eval Statements

Maybe this is obvious, but it wasn’t obvious to me. I’m binding some data in a repeater that has the following output based on two numeric columns in my database. It doesn’t matter why or what the data represents. It’s just two pieces of data with some formatting: 42, (123) Basically these are two measurements. Initially, I would databind this like so: <%# Eval("First") %>, (<%# Eval("Second") %>) The problem with this is that if the first field is null, I’m left with this output. , (123) Ok, easy enough to fix using a format string: <%# Eval("First", "{0}, ") %>(<%# Eval("Second") %>) But now I’ve learned that...

Subsonic 2.0 Beta 1

Rob Conery just announced that Beta 1 of SubSonic 2.0 is ready for your immediate data access needs. He’s looking for beta testers (open to anyone and everyone) to make sure this release is rock solid. I may attempt to claim a significant contribution, but do not believe me. I only contributed a teeny-tiny amount of code to this release. I am using a small bit of Subsonic in a current project (just using it to generate Stored Procedure wrappers since the existing database already has a legacy data model and stored procedures to work with). While I’m talking about...