What happened with experimenting with Repeaters? Why would anyone translate from the holy C# to the Barbarian VB? ( docks and covers! )
PS: Above is just a joke, no language was please, all the .net languages are equivalent in the eyes of CLI. Kind Regards Arjang On 13 May 2010 12:12, Geoff Appleby <[email protected]> wrote: > C# - But i'm multilingual and can translate :) > > On Thu, May 13, 2010 at 12:09 PM, noonie <[email protected]> wrote: >> >> VB or C# ? >> -- >> noonie >> >> On 13 May 2010 08:44, Geoff Appleby <[email protected]> wrote: >>> >>> Argh. This is annoying me so much. I rarely do ASP.net stuff, so I'm >>> always rusty...but normally I can google help. This time I just can't see >>> the problem... >>> >>> I've got a repeater control that lives inside a label control. The >>> repeater's itemtemplate dumps out hyperlink controls. >>> >>> The label is set to visible=false by default, and i hook the >>> ItemDataBound event - if that event fires with a non-null data item, then I >>> make the label visible. >>> >>> All works fine. Viewstate is enabled everywhere, and i'm rebinding all >>> repeaters in every page_load. >>> >>> Most of the links over this page are just links. But I've got two >>> linkbutton's that (obviously) generate a postback. When the postback fires i >>> _still_ rebind that repeater - and the itemdatabound event fires multiple >>> times (as it should) and the hyperlink controls get recreated. i've got >>> EnableViewState="true" all through those controls i've just mentioned too, >>> just in case. >>> >>> But after the page renders, the repeater control is simply not there. the >>> rendered html is just a <span></span> (for the wrapping label control). >>> >>> I'm positive its not viewstate related (since i'm rebinding each time and >>> the rebind is working - i've walked through the code and watched the >>> itemdatabound event fire multiple times. but i'm totally lost. >>> >>> there's three other repeaters on the same page, and each of _those_ still >>> render fine. >>> any thoughts? >>> >>> >>> -- >>> Geoff Appleby >>> Blog: http://blogs.crankygoblin.com/blogs/geoff.appleby/ >> > > > > -- > Geoff Appleby > Blog: http://blogs.crankygoblin.com/blogs/geoff.appleby/ >
