How to handle null value mapping in SqlDataSource
Hi, guys
If I pass null value to a parameter of SQL automatically generated by SqlDataSource (as WHERE field1=@dotnet.itags.org.field1, where field1 is of type ntext or nvarchar) at design-time, it seems SqlDataSource can not update appricately, throwing an exception: [SqlException (0x80131904):
even though the field1 in the db table is null-allowable.
How do I handle the situation where I must pass null value to update any field permitting null value.
Thanks,
Ricky.
What's the type of @.field1, and what are you setting it to? Post the relevant section of your code.Labels: ado, automatically, field1, field1field1, generated, guysif, handle, mapping, net, ntext, null, parameter, sql, sqldatasource, type, value
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home