views:

104

answers:

0

Hello,


1) I’ve always manually created ( in source view ) data source control, but I noticed that when I define data source control via GridView’s Smart Tag --> Configure Data Source, then the corresponding markup ( which Asp.Net automatically generates for us ) for UpdateCommand, InsertCommand and DeleteCommand also includes declaration of update, insert and delete parameters.

But when data source control was created manually, you didn’t have to define parameters (for update, insert or delete), since parameters were automatically received from GridView.

a) So is there a reason why Asp.Net chooses to automatically define those parameters inside markup?


b) When Asp.Net automatically declares parameters for update,delete and insert commands, does it also set some property via which data source control will be notified that it shouldn’t automatically generate new parameters for values send by GridView, but should instead use ( for values received from GridView) parameters defined inside <UpdateParameters>, <InsertParameters> and <DeleteParameters> elements?


thanx