On Sep 11, 2:45 pm, e...@lakenine.com wrote:
> Hi justin,
>
[quoted text clipped - 27 lines]
>
> > Any help or leads is greatly welcomed! Thank you in advance.
That makes sense, but I guess I'm not sure how to "jump in somewhere".
I don't see any events for the TextBox that would happen before
updating the database.
I can think of a few ways to replace the DateTime value if I wasn't
using the SqlDataSource and the update StoredProcedure, but what I'm
really looking for is something that will work with the DataSource. If
there was a default value for the TextBox or an event that fired
before an update on just the TextBox that would work, but I don't see
anything like that.
Lit - 12 Sep 2007 01:04 GMT
What about in your update SP check for blank and substitute null
> On Sep 11, 2:45 pm, e...@lakenine.com wrote:
>> Hi justin,
[quoted text clipped - 39 lines]
> before an update on just the TextBox that would work, but I don't see
> anything like that.
justin - 12 Sep 2007 03:21 GMT
> What about in your update SP check for blank and substitute null
>
[quoted text clipped - 41 lines]
> > before an update on just the TextBox that would work, but I don't see
> > anything like that.
Lit -
Great idea, not exactly the angle I was going for but same result. In
my SQL I used a CASE and checked the value, for what it's worth,
here's the SQL
randomDateField = CASE WHEN @randomDateField = '' THEN NULL ELSE
@randomDateField
Works great, thanks everyone.