asp.net - DataRepeater becomes empty -


i'm using datarepeater control in vb.net application can make custom-made list control.

i know it's main functionality work datasets , stuff, don't want transfer stuff database because in program's context doesn't make sense.

so goal here use datarepeater list contents of mail inbox.

everything works fine until scroll down control. scroll down/up see every item (in case, every listed e-mail), contents disappear , can see bunch of lines controls' default values assigned - "label1" , on.

this how i'm filling datarepeater (abreviated):

    each m message in mail.inbox          dr.addnew()          dr.currentitem            .controls("lblfrom") = m.from            .controls("lblsubject") = m.subject          end      next    

as said, datarepeater shows perfect until scroll up/down, , when data disappears remaining items controls' default (design-time) values.

am missing here? or not possible work datarepeater fulfil idea?

update: got answer right here!

the repeater isn't going hold values on own. dont have use datasource, have use something. here example used simple integer array: vb.net repeater simple data binding without datasource


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -