In BegASPNET2\Begin\Copy of Chapter03\Samples\ServerControls.aspx
The section bold and higthlight in green, i get an error messsage as seen below the page, but when remove ~/ in front of the jpeg file(azoreschurch.jpg) i get no errors.
i thought ~/ was valid to files that is local to the project, on the server side.
So, Y do i get error messages?
<%@ Page Language="
VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:Image ID="MyImage" runat="server"
ImageUrl="~/azoreschurch.jpg" /><br />
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="www.wroxunited.net">Visit Wrox United Online!</asp:HyperLink>
</div>
</form>
</body>
</html>
These are errors i get:
Error 1 File 'www.wroxunited.net' was not found. C:\Documents and Settings\t\My Documents\BegASPNET2\Begin\Copy of Chapter03\Samples\ServerControls.aspx 19 25 C:\...\Copy of Chapter03
Error 2 File '~/azoreschurch.jpg' was not found. C:\Documents and Settings\t\My Documents\BegASPNET2\Begin\Copy of Chapter03\Samples\ServerControls.aspx 17 56 C:\...\Copy of Chapter03