FormView - Single Record edit

K

KenK

Hi all,

Probably a simple question, however, I'm learning asp.net and wanted to use
a FormView to edit a single record (much like an *.ini on a win32 app) What
is the best way to programmatically determine if there is a record to
display and if not switch to "insert" mode.

I've successfully placed a button on the page and called
"FormView1.ChangeMode(FormView.Insert);"

While this works I'd prefer it to happen automatically.

Thanks,
Ken

PS. I'm guessing the work will be done if the page load event, but not
sure.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top