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. Advertising

  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. 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. TT
    Replies:
    0
    Views:
    371
  2. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    504
    Chris
    May 19, 2007
  3. Ryan
    Replies:
    3
    Views:
    2,121
  4. TT
    Replies:
    0
    Views:
    248
  5. David Thielen

    FormView/Repeater/ Eval(FormView data)

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

Share This Page