Insert on empty ListView

Discussion in 'ASP .Net' started by DavidC, Jan 8, 2010.

  1. DavidC

    DavidC Guest

    Does anyone know how to pre-populate a field on a ListView control when the
    bound datasource is empty? I can do it in Itemdatabound when there are
    already records but the same process does not work when the datasource is
    empty. Thanks.
    --
    David
     
    DavidC, Jan 8, 2010
    #1
    1. Advertising

  2. DavidC

    DavidC Guest

    Figured it out. I used PreRender event on control.
    --
    David


    "DavidC" wrote:

    > Does anyone know how to pre-populate a field on a ListView control when the
    > bound datasource is empty? I can do it in Itemdatabound when there are
    > already records but the same process does not work when the datasource is
    > empty. Thanks.
    > --
    > David
     
    DavidC, Jan 8, 2010
    #2
    1. Advertising

  3. =?Utf-8?B?RGF2aWRD?= <> wrote in
    news::

    > Does anyone know how to pre-populate a field on a ListView control
    > when the bound datasource is empty? I can do it in Itemdatabound when
    > there are already records but the same process does not work when the
    > datasource is empty. Thanks.


    one option is the empty template.

    Peace and Grace,

    --
    Gregory A. Beamer (MVP)

    Twitter: @gbworld
    Blog: http://gregorybeamer.spaces.live.com

    *******************************************
    | Think outside the box! |
    *******************************************
     
    Gregory A. Beamer, Jan 8, 2010
    #3
    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. shapper
    Replies:
    4
    Views:
    10,529
    David
    Nov 20, 2008
  2. shapper

    ListView ... Update and Insert

    shapper, Feb 8, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    1,191
    shapper
    Feb 8, 2008
  3. shapper
    Replies:
    1
    Views:
    714
    shapper
    Feb 12, 2008
  4. Marius Manolea
    Replies:
    0
    Views:
    1,079
    Marius Manolea
    Jun 4, 2008
  5. .
    Replies:
    0
    Views:
    793
Loading...

Share This Page