I have never come across a ascx page before, but I'm working on a site that was developed outside the company and I'm trying to re-skin it and change things around a bit.
I got an image that I want only to show on the login page and not elsewhere, so th eoanswer to this is to use an if statement, as below:
I'm suing Dreamweaver, and the if statement is not in colour, so that tells me its not right. Can somebody help me get that if statement working in an ascx page, and the if statement looking at anch checking the current url.
Cheers
I got an image that I want only to show on the login page and not elsewhere, so th eoanswer to this is to use an if statement, as below:
Code:
if (url="[URL unfurl="true"]http://localhost:81/Login.aspx")[/URL]
{
<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>
}
else
{
<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>
}
I'm suing Dreamweaver, and the if statement is not in colour, so that tells me its not right. Can somebody help me get that if statement working in an ascx page, and the if statement looking at anch checking the current url.
Cheers