I have an ascx page, but its the same as aspx im told, and i need to wrap an if statement around a piece of html thats looks at the url and thats when the if else statement needs to work, as below:
Im using Dreamweaver and the colour coded code is not right so i know its not working, but thats backed up by errors that appear.
Can anybody help.
Thanks in advance
Code:
<%# if(url=("[URL unfurl="true"]http://www.mysite.com/loginpage.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_different.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" />
%>
Im using Dreamweaver and the colour coded code is not right so i know its not working, but thats backed up by errors that appear.
Can anybody help.
Thanks in advance