Re: Repeater woes

Tech-Archive recommends: Speed Up your PC by fixing your registry



You can follow a discussion here:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ab5f7665ffa4ed52/3af59c250d1a6045?hl=en&lnk=st&q=sloan+href+asp.net#3af59c250d1a6045



<hardieca@xxxxxxxxxxx> wrote in message
news:fe7a536b-4da2-4fda-8248-698f34240d8d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have bound a repeater to an objectdatasource to display comments at
the end of my blog. People may enter their email or omit it.

When the repeater is rendering, I would like to evaluate for the
existence of the email address, and if it exists, write:

<a href="mailto:bob@xxxxxxxxx";>Bob</a> writes...

Otherwise, ouput:

Bob writes...

I tried trapping for the OnItemCreated event on the repeater, but I
don't know how to access the comment's data from there. Should I
instead be using an event of the objectdatasource and writing to
private variables and reference those in the repeater?

Regards,

Chris


.



Relevant Pages

  • DataBind OnSelecting and ReInit Page variables
    ... The page is a Search Page with 2 textboxes and a search button with a ... The repeater is bound on an objectDataSource. ... On the OnClick event handler I set an Int32 variable inside the page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Repeater verschachteln
    ... ich möchte in einer ASP.NET 2.0 Seite hierarchische Daten mittels zweier verschachtelter Repeater darstellen. ... Auf der Seite habe ich zwei ObjectDataSource Controls die für jeweils eine Ebene die Daten ziehen. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Repeater verschachteln
    ... ich möchte in einer ASP.NET 2.0 Seite hierarchische Daten mittels zweier verschachtelter Repeater darstellen. ... Auf der Seite habe ich zwei ObjectDataSource Controls die für jeweils eine Ebene die Daten ziehen. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Repeater woes
    ... I have bound a repeater to an objectdatasource to display comments at ... People may enter their email or omit it. ... I tried trapping for the OnItemCreated event on the repeater, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Repeater SubControl Dropdownlist not saving SelectedValue
    ... check and I wasn't rebinding the Repeater. ... When I used the OnItemCreated event it Rebound the Nested Repeater on ... It probably a rebinding issue. ... IsPostBack and only Binding Once. ...
    (microsoft.public.dotnet.framework.aspnet)