inserting formview with hiddenfield

  • Thread starter Thread starter win
  • Start date Start date
W

win

I am trying to insert some data using FormView which works fine but I
do not know how to include hiddenfield and bind them in the construct
so I can insert information like modify date, etc..

Any body has any suggestions

Thanks
 
Hi,

You may use ItemInserting event of form view to add values of to the
fields which are not visible to user.
To add a value use e.values collection. For example

e.values("InsertDate")=datetime.now()

Same way you can use parameter e.NewValues of ItemUpdating event to
modify values while updating.

Regadrs,
/Anoj Kumar
http://techtips4you.blogspot.com
 
Back
Top