Home All Groups Group Topic Archive Search About
Author
14 Aug 2006 1:28 PM
Peter Kirk
Hi

I have a page with several ascx (user controls) on it. The first few
user-controls are dropdowns and so on, which initialise themselves from a
database.

The last user-control has some "<a href>" tags in it, which link back to the
same page and should cause this last user-control to perform specific
actions on itself.

The problem is that these links do not cause a so-called "post-back", and
therefore the other user-controls re-initialise themselves (which the do on
!IsPostBack). How do I prevent the other user-controls on the page from
reacting to the links in the last user-control?


Thanks,
Peter

Author
14 Aug 2006 10:46 PM
clintonG
Use LinkButtons which render as anchors and support event handlers.

<%= Clinton Gallagher
        NET csgallagher AT metromilwaukee.com
        URL http://www.metromilwaukee.com/clintongallagher/

Show quoteHide quote
"Peter Kirk" <p*@alpha-solutions.dk> wrote in message
news:%237ZIGW6vGHA.2436@TK2MSFTNGP06.phx.gbl...
> Hi
>
> I have a page with several ascx (user controls) on it. The first few
> user-controls are dropdowns and so on, which initialise themselves from a
> database.
>
> The last user-control has some "<a href>" tags in it, which link back to
> the same page and should cause this last user-control to perform specific
> actions on itself.
>
> The problem is that these links do not cause a so-called "post-back", and
> therefore the other user-controls re-initialise themselves (which the do
> on !IsPostBack). How do I prevent the other user-controls on the page from
> reacting to the links in the last user-control?
>
>
> Thanks,
> Peter
>