Keeping track of instances of WebUserControl

Discussion in 'ASP .Net' started by Klaus Jensen, May 29, 2007.

  1. Klaus Jensen

    Klaus Jensen Guest

    Hi

    In a repeater-control, in the <SeparatorTemplate> i have placed a
    webusercontrol, I have made. That works great-

    However, I want to know be able to only display this WebUserControl a
    certain number of times. Basicly I need the WebUserControl itself to know,
    how many other instances of the webusercontrol was displayed on the page,
    when I run it.

    Kind of like if I was displaying banners adds between posts, and only wanted
    banner-ads between the first 3 posts.

    Any ideas on how to do that?

    Thanks in advance

    Klaus
     
    Klaus Jensen, May 29, 2007
    #1
    1. Advertisements

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. John
    Replies:
    0
    Views:
    454
  2. Utter Newbie
    Replies:
    0
    Views:
    560
    Utter Newbie
    Jul 28, 2003
  3. Manuel
    Replies:
    1
    Views:
    424
    John Saunders
    Dec 11, 2004
  4. =?Utf-8?B?dHBlcnJp?=
    Replies:
    4
    Views:
    2,187
    =?Utf-8?B?Rng=?=
    Jul 12, 2005
  5. xzzy

    keeping track of threads

    xzzy, Oct 6, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    584
  6. Anders Steinlein

    Keeping track of online users

    Anders Steinlein, Apr 20, 2004, in forum: Java
    Replies:
    0
    Views:
    455
    Anders Steinlein
    Apr 20, 2004
  7. gooch
    Replies:
    7
    Views:
    1,475
    Ryan Stewart
    Jan 10, 2005
  8. Karlo Lozovina

    Keeping track of subclasses and instances?

    Karlo Lozovina, Oct 11, 2007, in forum: Python
    Replies:
    12
    Views:
    594
    Bruno Desthuilliers
    Oct 11, 2007
Loading...