Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am using the FormView control to insert data into a table. One of the rows is a date/time field. This value will have to be programatically inserted (and not by the user). I am using the

 

OnItemInserting="GetDateTime"

 

to execute a sub

 

Public Sub GetDateTime(ByVal sender As Object, ByVal e As FormViewInsertEventArgs)

MyDateTime = Today

End Sub

 

From here how do I get the data into the row ????? I have tried using the edit data binding wizard and the custom binding option like "Eval(MyDateTime)" but I get error.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...