I do not get an error or anything, but was hoping someone could point me in the right direction. Is there a setting in IIS or WebMatrix that is causing the menu not to show up and I need to change?
Thanx in advance!Can u post your code please.
Menu.ascx
===================================================
<%@. Control Language="VB" %>
Members | Sign
Up | News | Forums | Mobile | Tutorials | Resources | Support | Search
===================================================
Default.aspx
===================================================
<%@. Page Language="VB" Debug="true" %>
<%@. Register TagPrefix="dotnet" TagName="mnDotnet" src="http://pics.10026.com/?src=Menu.ascx" %>
<html>
<head>
<title>Yourdotnet.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="http://links.10026.com/?link=css/dotnet.css" type="text/css" rel="stylesheet" />
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<!-- Start Main table -->
<table cellspacing="0" cellpadding="0" width="760" border="0">
<tbody>
<tr>
<td>
<!-- Begin Header table -->
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td class="text3" valign="center" background="images/bg_grey3D.gif" widht="625">
<!-- Begin User Control for the menu -->
<dotnet:mnDotnet id="mnDotnet" runat="server"></dotnet:mnDotnet>
</td>
<td valign="center" align="right" width="135" background="images/bg_grey3D.gif">
<img src="http://pics.10026.com/?src=images/logo_dotnet.gif" width="135" border="0" /></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</tbody>
</table>
<!-- End Header table --></td>
</tr>
<tr>
<td valign="top">
<!-- Start Main Content table -->
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td class="border" valign="top" align="middle" width="180">
<br />
<!-- Start Web Hosting Etc Banner -->
<hr width="100%" color="#c5c5c5" noshade="noshade" size="1" />
<img src="http://pics.10026.com/?src=http://www.webhostingetc.net/ads/renderbanners/smallsquare.jpg" border="0" />
<hr width="100%" color="#c5c5c5" noshade="noshade" size="1" />
<img alt="Powered by ASP.NET" src="http://pics.10026.com/?src=images/logo_aspdotnet.gif" border="0" />
<br />
<br />
</td>
<td class="border">
<table cellpadding="4" align="center" border="0">
<tbody>
<tr>
<td align="middle">
</td>
</tr>
<tr>
<td>
<p align="center">
<b class="headline">This site is under construction...Please check back soon!</b>
</p>
<br />
<form runat="server">
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- End Main Content table --></td>
</tr>
<tr>
<td align="middle">
</td>
</tr>
</tbody>
</table>
<!-- End Main table -->
</body>
</html>
====================================================
Thanks midi25
Theres alot of code there my brother and looks in need of a clean up. I suspect and this has happened to me a few times that the html comments or a faulty <tag> somewhere may be giving you a problem and not causing the control to be displayed. Apart from that the rest of the .net code looks ok. Also make sure that default.aspx and menu.ascx are both in your root folder in IIS.
Thanx for the reply. I think you might have found the problem since I have the 2 files in a folder, named 'dotnet' which is a folder in the root directory of my IIS. The only reason I put them there was because I was planning on developing an intranet for my home network and assumed that I could not have both in the IIS root folder.
This leads me to my next question (and then I'll stop bothering you). If I do develop an intranet and put the 2 forementioned files in the root folder, how will users get to each site since they will both have a default.aspx file in the same directory?
Do I need to:
1. assign each site its own server port OR
2. just create the intranet and put the 'dotnet' directory as a sub-directory in that? If so, won't I encounter the same problem, because I will then need 2 menu.ascx files, 1 for the intranet and for dotnet site?
Note: the intranet site will be something completely different than the dotnet site, which is merely for testing scripts before uploading them to my web host, so I really do not want to keep them in the same directory.
Last question:
Could you please recommend a good .NET web host(s)?
0 comments:
Post a Comment