Results 1 to 4 of 4

Thread: [RESOLVED] how to clear out a data repeater

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Resolved [RESOLVED] how to clear out a data repeater

    Hi there,

    I have a simple question. I am using a data repeater on a page I created, work fine except I have several search different search options - if the user searches once then searches again I need to clear everything out from the original search. rather than just adding to the list. Any Idea how to do this? I am sure it is simple I am just missing it.

    Thanks

  2. #2
    Lively Member
    Join Date
    Jun 2007
    Posts
    120

    Re: how to clear out a data repeater

    Can we see some code?

    Also can't you just set the variable or object = Nothing?

  3. #3
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Re: how to clear out a data repeater

    Give,
    Code:
    Datarepeater1.datasource = nothing
    datarepeater1.databind()
    The above code will clear the data. Replace datarepeater1 to ur object name
    God has been pleased to place as a king or cobbler do the work sincerely

  4. #4

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Re: [RESOLVED] how to clear out a data repeater

    Duh! Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width