inserting formview with hiddenfield

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
 
A

Anoj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top