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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top