G
Guest
I have a database field of type datetime. This field should store a system
time when a record is inserted. The other fields in the record are bound to a
control and I have no problems with them. I tried setting the datetime field
with a default value using getdate(), but it still does not work. How can I
use a statement similar these beow to achieve this?
My current code:
<InsertParameters>
<asp:ControlParameter Name="BillingAddress" Type="String"
ControlID="BillingAddress" PropertyName="Text" />
<asp:ControlParameter Name="BillingCity" Type="String"
ControlID="BillingCity" PropertyName="Text" />
<!-- This is where my problem is !-->
<asp:ControlParameter Name="SignUpDate" Type="String" .... />
time when a record is inserted. The other fields in the record are bound to a
control and I have no problems with them. I tried setting the datetime field
with a default value using getdate(), but it still does not work. How can I
use a statement similar these beow to achieve this?
My current code:
<InsertParameters>
<asp:ControlParameter Name="BillingAddress" Type="String"
ControlID="BillingAddress" PropertyName="Text" />
<asp:ControlParameter Name="BillingCity" Type="String"
ControlID="BillingCity" PropertyName="Text" />
<!-- This is where my problem is !-->
<asp:ControlParameter Name="SignUpDate" Type="String" .... />