Hello,
Using Visual Studio 2005, Firebird .net provider (ddex)
I have set up xsd scheme with one datatable, with all the stuff,
getdata, insert, update, delete. Later on aspx web form
I set up GridView which creates ObjectDataSource and it takes data from
my generated table adapter. The problem is
within editing records within grid view. It drops out following exception:
Value cannot be null.
Parameter name: Original_NOSAUKUMS
...
Line 1635: this.Adapter.UpdateCommand.Parameters[13].Value =
((double)(KREDLIMITS));
Line 1636: if ((Original_NOSAUKUMS == null)) {
Line 1637: throw new
System.ArgumentNullException("Original_NOSAUKUMS");
Line 1638: }
Line 1639: else {
So it seems that ObjectDataSource doesn't loads into its parameter block
value of Original_<field> values and it passes null values to Update
function.
Cannot google up this, it seems that there could be firebird specific
problems.
DAL (xsd)
table adapter is set up with following options:
* Generate Insert, Update, ....
* Use optimistic concurrency
It looks like ObjectDataSource is set up correctly, so that
OldValuesParameterFormatString="Original_{0}"
But somehow it seems, that these Original_ fields are not filled up.
Where could be the problem?
Does OldValuesParameterFormatString work only on primary keys?
Thanks in advance
Madars
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider