Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   How/Where the OldValuesParameters is retrived from? (http://www.velocityreviews.com/forums/t762973-how-where-the-oldvaluesparameters-is-retrived-from.html)

SupaJay 09-08-2006 07:59 PM

How/Where the OldValuesParameters is retrived from?
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="......." SelectCommand="SELECT * FROM [MyData]"
ConflictDetection="CompareAllValues" DeleteCommand="DELETE FROM [MyData]
WHERE [ID] = @original_ID AND [last_mod_time] = @original_last_mod_time "
OldValuesParameterFormatString="original_{0}">
<DeleteParameters>
<asp:Parameter Name="original_EID" Type="Int32" />
<asp:Parameter Name="original_last_mod_time" Type="DateTime" />
</DeleteParameters>
</asp:SqlDataSource>

with a FormView bound to that datasource(DataKey is ID), in the
ItemTemplate, there is no control that is bound from ID, nor Last_mod_time

but when deleteing, it fail to delete correctly, because the
@original_last_mod_time was empty(the viewing data has a last_mod_time),
while @original_ID has the correctID in it

so my question is, WHERE does the @original_ID come from? and why
@original_last_mod_time was empty?

thanks.




All times are GMT. The time now is 07:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.