Attempted to create a HyperLink control in asp.net (vb.net) and reference its ImageUrl feature to associate an image with this control.
Using this Master Page, I attempt to move from source to display mode in Visual Studio 2008 and I create a rendering error:
Error Rendering Control - HyperLink3
An unhandles exception has occurred.
Object reference is not set to an instance of an object.
The code is as follows with the HyperLink3 reference above the footer (bottom) of the code....
(Note: If I remove the ImageUrl reference in that line of code, the Unhandled Expection goes away)
<%@ Master Language="VB" CodeFile="TewksLimo.master.vb" Inherits="TewksLimo" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<%@ Register Assembly="ASPNetFlash.NET3" Namespace="ASPNetFlash" TagPrefix="ASPNetFlash" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Tewksbury Limousine Default Master Page</title>
<link rel="stylesheet" href="~/css/tewksburylimousine.css" />
<script type="text/javascript" src="~/javascript/Global_Javescript.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div id="wrapper">
<div id="header">
<ASPNetFlash:Flash ID="Flash1" runat="server" Height="175px" HeightAutoDetect="False" MovieURL="~/images/flash/LimoHeader2.swf"
Width="750px" WidthAutoDetect="False"></ASPNetFlash:Flash>
</div> <!-- header -->
<div id="wrapper1">
<div id="header_menu">
<eo:Menu ID="Menu2" runat="server" Width="200px" CheckIconUrl="OfficeCheckIcon2" ControlSkinID="None" >
<LookItems>
<eo:MenuItem
DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;color:gray"
Height="24"
HoverStyle-CssText="background-color:#C0D6F4;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;"
ItemID="_TopLevelItem"
NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;"
SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;">
<SubMenu CollapseEffect-Type="GlideTopToBottom" ExpandEffect-Type="GlideTopToBottom" ItemSpacing="3"
Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Verdana;font-size:11pt;font-weight:bold;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem IsSeparator="True" ItemID="_Separator" NormalStyle-CssText="background-color:#6a8ccb;height:1px;margin-left:30px;width:1px;">
</eo:MenuItem>
<eo:MenuItem DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;color:gray"
Height="24"
HoverStyle-CssText="background-color:#FFEEC2;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
ItemID="_Default"
NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;"
SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
Text-Padding-Right="30">
<SubMenu CollapseEffect-Type="GlideTopToBottom" ExpandEffect-Type="GlideTopToBottom" ItemSpacing="3"
Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Verdana;font-size:8pt;font-weight:bold;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;">
</SubMenu>
</eo:MenuItem>
</LookItems>
<TopGroup Width="750" Style-CssText="background-color: transparent; border-width: 0px; font-size: 15px; Font-Weight: Bold; font-family: arial; ">
<Items>
<eo:MenuItem Text-Html="HOME" NavigateUrl="~/Default.aspx">
</eo:MenuItem>
<eo:MenuItem Text-Html="OCCASIONS">
<SubMenu>
<Items>
<eo:MenuItem Text-Html="Anniversity" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Bachelor(ette) Party" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Birthday" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Concerts" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Dining & Nightlife" NavigateUrl="~/Dining.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Graduations" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Holiday Light Tours" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Homecoming/School Dance" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Proms" NavigateUrl="~/Proms.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Sports & Entertainment" NavigateUrl="~/Sports.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="VIP Travel" NavigateUrl="~/Other.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="Weddings" NavigateUrl="~/Weddings.aspx">
<SubMenu Style-CssText="font-weight:bold;">
</SubMenu>
</eo:MenuItem>
</Items>
</SubMenu>
</eo:MenuItem>
<eo:MenuItem Text-Html="SPECIALS" NavigateUrl="~/Specials.aspx">
</eo:MenuItem>
<eo:MenuItem Text-Html="RESERVATIONS" NavigateUrl="~/MakeReservation.aspx">
</eo:MenuItem>
<eo:MenuItem Text-Html="POLICIES" NavigateUrl="~/Policies.aspx">
</eo:MenuItem>
<eo:MenuItem Text-Html="ABOUT US" NavigateUrl="~/AboutUs.aspx">
</eo:MenuItem>
<eo:MenuItem Text-Html="CONTACT US" NavigateUrl="~/ContactUs.aspx">
</eo:MenuItem>
</Items>
</TopGroup>
</eo:Menu>
</div> <!-- header_menu -->
<br />
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<div id="footer">
<br />
<table style="text-align: center; font-size: 15px">
<tr>
<td>
<a href="~/Default.aspx" style="text-decoration: none">HOME | </a>
<a href="~/Default.aspx" style="text-decoration: none">PRIVACY | </a>
<a href="~/Default.aspx" style="text-decoration: none">TERMS OF USE | </a>
<a href="~/Default.aspx" style="text-decoration: none">SECURITY | </a>
<a href="~/Default.aspx" style="text-decoration: none">SITE MAP | </a>
<a href="~/Default.aspx" style="text-decoration: none">LOGIN</a>
<br />
COPYRIGHT © 2005 · Tewksbury Limousine, Inc., 820 Livingston Street, Tewksbury, Massachusetts 01876
<br />
Phone: 978.851.4875 · Website:
www.tewksburylimousine.com · Email: <a href="mailto:info@tewksburylimousine.com">info@tewksburylimousine.com</a>
<br /><br />
<b>Affiliated Links:</b>
<br />
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://www.tewksburyauto.com/" Target="_parent" Font-Bold="true">tewksburyauto.com</asp:HyperLink>
<br />
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="http://www.tewksburyautosales.com/" Target="_parent" Font-Bold="true">tewksburyautosales.com</asp:HyperLink></td>
</tr>
<tr><td style="height: 10px"> </td></tr>
<tr>
<td align="center">
<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="http://www.quilion.com/" Target="_parent" ImageUrl="~/images/weblink1.gif"></asp:HyperLink> </td>
</tr>
</table>
</div> <!-- footer -->
</div> <!-- wrapper1 -->
</div>
</form>
</body>
</html>