disable updates on formview

Discussion in 'ASP .Net' started by =?Utf-8?B?cm9kY2hhcg==?=, Oct 2, 2006.

  1. hey all,
    if i want the user to only be able to add one record on the formview what's
    the best way to do this? they can edit current record but not add more than
    one. they can also delete that one record.

    any ideas?
    thanks,
    rodchar
     
    =?Utf-8?B?cm9kY2hhcg==?=, Oct 2, 2006
    #1
    1. Advertisements

  2. =?Utf-8?B?cm9kY2hhcg==?=

    David Wier Guest

    When the user inserts the one record - retrieve and keep the PK id in memory
    (session or cookie if the need is longer), so that they can only edit or
    delete that one record- then check to see if it exists and if they try to
    enter another, just keep them from it.

    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://aspexpress.com



    "rodchar" <> wrote in message
    news:D...
    > hey all,
    > if i want the user to only be able to add one record on the formview

    what's
    > the best way to do this? they can edit current record but not add more

    than
    > one. they can also delete that one record.
    >
    > any ideas?
    > thanks,
    > rodchar
     
    David Wier, Oct 2, 2006
    #2
    1. Advertisements

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. Gary
    Replies:
    7
    Views:
    5,079
    Joe Smith
    Jan 20, 2004
  2. dbuchanan
    Replies:
    0
    Views:
    537
    dbuchanan
    Dec 12, 2005
  3. Amit Marathe

    DLL updates and sessions

    Amit Marathe, Jun 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    401
    Amit Marathe
    Jun 30, 2003
  4. TT
    Replies:
    0
    Views:
    438
  5. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    836
    Chris
    May 19, 2007
  6. Ryan
    Replies:
    3
    Views:
    2,463
  7. TT
    Replies:
    0
    Views:
    331
  8. David Thielen

    FormView/Repeater/ Eval(FormView data)

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