G
Guest
How to define databinding for 'datetime' data type ?
( Xxx = '<%# Bind("Datetime") %>' )
Thank you.
Pen
( Xxx = '<%# Bind("Datetime") %>' )
Thank you.
Pen
How to define databinding for 'datetime' data type ?
( Xxx = '<%# Bind("Datetime") %>' )
Thank you.
Pen
Yes. What is lvalue (not TextBox or Checked) ?
I am trying to use either 'Bind' or 'Eval' to store (insert a record) the
DateTime.now() info to SQL 2005 database table through the FormView.
I think it is:
<InsertParameters>
<asparameter Name="Datetime" Type="DateTime" />
</InsertParameters>
But, how to define the two-way binding in FormView and code-behind (onClick)
for the 'xxx', 'yyy', 'Zzz' and 'aaa' shown below:
<asp:xxx ID="Datetime1" runat="server"
yyy='<%# Bind("Datetime") %>'
Visible="False">
</asp:xxx>
The code behind is something like:
Zzz var = (Zzz) FormView1.Row.FindControl("Datetime1");
var.aaa= System.DateTime.Now();
Thank you
--
Pen
- Show quoted text -