| Author |
Include code inside repeater
|
|
|
| Hi,
I want to do add an if statement (C#) inside my itemtemplate.
Something like this:
<ItemTemplate>
IF (true)
...<td><asp:HyperLink...
ELSE
...<td><asp:HyperLink...
</ItemTemplate>
How can I do this?
Thanks!
| |
| Eliyahu Goldin 2005-07-31, 9:00 am |
| The way of doing this sort of things is to put all controls in the template
and hide/show them by either databinding Visible property or setting Visible
property in ItamDataBound event.
Eliyahu
"Arjen" <boah123@hotmail.com> wrote in message
news:dcih04$al2$1@news2.zwoll1.ov.home.nl...
> Hi,
>
> I want to do add an if statement (C#) inside my itemtemplate.
>
> Something like this:
> <ItemTemplate>
> IF (true)
> ...<td><asp:HyperLink...
> ELSE
> ...<td><asp:HyperLink...
> </ItemTemplate>
>
> How can I do this?
>
> Thanks!
>
>
| |
| Karl Seguin 2005-07-31, 9:00 am |
| You can learn more at:
http://openmymind.net/index.aspx?documentId=8
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:OTOHsHdlFHA.1608@TK2MSFTNGP10.phx.gbl...
> The way of doing this sort of things is to put all controls in the
> template
> and hide/show them by either databinding Visible property or setting
> Visible
> property in ItamDataBound event.
>
> Eliyahu
>
> "Arjen" <boah123@hotmail.com> wrote in message
> news:dcih04$al2$1@news2.zwoll1.ov.home.nl...
>
>
|
|
|
|