FormView - Single Record edit

Discussion in 'ASP .Net Web Controls' started by KenK, Jan 15, 2006.

  1. KenK

    KenK Guest

    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.
     
    KenK, Jan 15, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    1
    Views:
    363
    Chris
    May 7, 2007
  2. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    571
    Chris
    May 19, 2007
  3. Mike Chamberlain

    "Single record" edit control

    Mike Chamberlain, Mar 15, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    133
    Jason Bentley
    Mar 16, 2005
  4. Phil

    edit single record in formview

    Phil, Jan 23, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    152
  5. David Thielen

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    694
    David Thielen
    Jun 16, 2006
Loading...

Share This Page