Oct 13, 2010 05:52 PM|msegura|LINK
I'm trying to figure out if it's possible to use an ObjectDataSource Update method with a table-valued parameter. Here's my ODS:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
<asp:Parameter DefaultValue="65" Name="testId" Type="Int32" />
I bind this to a GridView but I'm not looking to edit row by row. Instead my GridView has a bunch of TemplateFields with textboxes. I also have a Button that when pressed, invokes the Update method of the ODS. So then the "UpdateTestData" function in my
TestBLL is called. This looks like this:
public void UpdateTestData(MyTestDataTable dt)
QueriesTableAdapter qta = new QueriesTableAdapter();
At run-time in debug, it seems like the object for the signature above is not populated with the data from my GridView. I guess I'm missing something here but does anyone have any ideas?