Hi, All:
I am trying to use SqlDataSource.Update() to save records.
I am trying to use SqlDataSource.Update() to save records.
<
asp:SqlDataSource ID="sdsUpdateAll" runat="server" ConnectionString="<%$ ConnectionStrings:ConnString %>">
<UpdateParameters>
<asp:Parameter Name="billed" Type="DateTime" ConvertEmptyStringToNull="true" />
</UpdateParameters>
</asp:SqlDataSource>
and:
sdsUpdateAll.UpdateCommand =
string.Format("update MyTable set Billed = @billed " + ...
sdsUpdateAll.Update();
My question is: How to pass a value, say '5/10/2008', into parameter @billed.
thanks.
Stanley