D
drasko
I have DetailsView control in Insert mode and I want to fill its cells
initially with values retrieved from ActiveDirectory. User would add
some data in other cells of DetailsView and after clicking on Insert
these data would be inserted into table. Until now, I can retrieve
values from AD, fill cells of DetailsView, but after clicking Insert I
get the following message:
<
Value cannot be null.
Parameter name: FirstName
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: FirstName
Source Error:
Line 11841: System.Data.SqlClient.SqlCommand command =
this.CommandCollection[3];
Line 11842: if ((FirstName == null)) {
Line 11843: throw new System.ArgumentNullException("FirstName");
Line 11844: }
Line 11845: else {
If I manually enter values (ea without programatically filling cells),
insert goes well.
I am filling cells in following manner:
((TableCell)UserDetailsView.Rows[1].Cells[1]).Text = firstName;
How can I get rid of this error?
Thanks in advance!
Drasko
initially with values retrieved from ActiveDirectory. User would add
some data in other cells of DetailsView and after clicking on Insert
these data would be inserted into table. Until now, I can retrieve
values from AD, fill cells of DetailsView, but after clicking Insert I
get the following message:
<
Value cannot be null.
Parameter name: FirstName
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: FirstName
Source Error:
Line 11841: System.Data.SqlClient.SqlCommand command =
this.CommandCollection[3];
Line 11842: if ((FirstName == null)) {
Line 11843: throw new System.ArgumentNullException("FirstName");
Line 11844: }
Line 11845: else {
If I manually enter values (ea without programatically filling cells),
insert goes well.
I am filling cells in following manner:
((TableCell)UserDetailsView.Rows[1].Cells[1]).Text = firstName;
How can I get rid of this error?
Thanks in advance!
Drasko