I have an image issue in an ascx page, its not really anything to do with code itself, as what I need to control is the html part of it.
Basically I have an image tucked away in a table and what I need to do is check the url, if the url is displaying what I need it displays the image, if not i replicate the code and not display any image.
Here is the piece of very basic code below:
What I need to know is how to create that if statement surrounding that block of code with an else statement too.
Cheers
Basically I have an image tucked away in a table and what I need to do is check the url, if the url is displaying what I need it displays the image, if not i replicate the code and not display any image.
Here is the piece of very basic code below:
Code:
<td valign="middle" align="center" style="width: 239px; height: 80px;">
<asp:Image ID="ImageHeaderECristalLogo" ImageAlign="Top" Height="80px" Width="239px" runat="server" ImageUrl="~/Images/eCristalLogo_Large.gif" />
</td>
What I need to know is how to create that if statement surrounding that block of code with an else statement too.
Cheers