J
JDP@Work
Very new to .Net, and I understand that there is a difference between when
script at the server vs html is rendered, but...
The following I thought would give me a header, a login page in the body and a
footer, but it comes as header footer then body.
TIA
JeffP...
aspx html follows
Header...
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="header.ascx.vb"
Inherits="Service1.header"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<Script Runat="Server">
Public PageTitle As String
</Script>
<head>
<LINK REL="stylesheet" type="text/css" href="/service1/site/style.css">
<title><%=PageTitle%></title>
</head>
<body>
<table width="800" border="0" cellpadding="5" cellspacing="0">
<tr><td>
<img src="/service1/site/images/banner_top.gif">
</td>
</tr>
</table>
Login...
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<%@ Register TagPrefix="myControls" TagName="Footer"
SRC="/service1/site/usercontrols/footer.ascx" %>
<%@ Register TagPrefix="myControls" TagName="Header"
SRC="/service1/site/usercontrols/header.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Login.aspx.vb"
Inherits="Service1.Login" %>
<myControls:Header pageTitle="Please Login" runat="server" id="Header1" />
<form id="Form1" method="post" runat="server">
<asp:label id="lblError" runat="server" Width="304px" Height="24px"
ForeColor="Red" style="Z-INDEX: 101; LEFT: 392px; POSITION: absolute; TOP:
288px"></asp:label>
<asp:button id="cmdEnter" runat="server" Width="80px" Text="Enter"
Height="24px" style="Z-INDEX: 102; LEFT: 280px; POSITION: absolute; TOP:
280px"></asp:button>
<asp:textbox id="txtPassword" runat="server" ToolTip="Please enter your valid
password" Width="176px"
style="Z-INDEX: 103; LEFT: 232px; POSITION: absolute; TOP:
248px"></asp:textbox>
<asp:label id="Label1" runat="server" Width="192px" Height="24px"
Font-Bold="True" style="Z-INDEX: 104; LEFT: 232px; POSITION: absolute; TOP:
200px">Please enter your UserID</asp:label>
<asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 105;
LEFT: 432px; POSITION: absolute; TOP: 248px"
runat="server" Width="232px" ErrorMessage="Please Supply a Valid Login ID"
ControlToValidate="txtPassword"></asp:requiredfieldvalidator>
</form>
<myControls:Footer id="Footer1" runat="server"></myControls:Footer>
Footer
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="footer.ascx.vb"
Inherits="Service1.footer"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table>
<hr>
<small>All Contents Copyright © 2004 Services Inc.</small>
</td>
</tr>
</table>
</body>
</html>
script at the server vs html is rendered, but...
The following I thought would give me a header, a login page in the body and a
footer, but it comes as header footer then body.
TIA
JeffP...
aspx html follows
Header...
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="header.ascx.vb"
Inherits="Service1.header"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<Script Runat="Server">
Public PageTitle As String
</Script>
<head>
<LINK REL="stylesheet" type="text/css" href="/service1/site/style.css">
<title><%=PageTitle%></title>
</head>
<body>
<table width="800" border="0" cellpadding="5" cellspacing="0">
<tr><td>
<img src="/service1/site/images/banner_top.gif">
</td>
</tr>
</table>
Login...
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<%@ Register TagPrefix="myControls" TagName="Footer"
SRC="/service1/site/usercontrols/footer.ascx" %>
<%@ Register TagPrefix="myControls" TagName="Header"
SRC="/service1/site/usercontrols/header.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Login.aspx.vb"
Inherits="Service1.Login" %>
<myControls:Header pageTitle="Please Login" runat="server" id="Header1" />
<form id="Form1" method="post" runat="server">
<asp:label id="lblError" runat="server" Width="304px" Height="24px"
ForeColor="Red" style="Z-INDEX: 101; LEFT: 392px; POSITION: absolute; TOP:
288px"></asp:label>
<asp:button id="cmdEnter" runat="server" Width="80px" Text="Enter"
Height="24px" style="Z-INDEX: 102; LEFT: 280px; POSITION: absolute; TOP:
280px"></asp:button>
<asp:textbox id="txtPassword" runat="server" ToolTip="Please enter your valid
password" Width="176px"
style="Z-INDEX: 103; LEFT: 232px; POSITION: absolute; TOP:
248px"></asp:textbox>
<asp:label id="Label1" runat="server" Width="192px" Height="24px"
Font-Bold="True" style="Z-INDEX: 104; LEFT: 232px; POSITION: absolute; TOP:
200px">Please enter your UserID</asp:label>
<asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 105;
LEFT: 432px; POSITION: absolute; TOP: 248px"
runat="server" Width="232px" ErrorMessage="Please Supply a Valid Login ID"
ControlToValidate="txtPassword"></asp:requiredfieldvalidator>
</form>
<myControls:Footer id="Footer1" runat="server"></myControls:Footer>
Footer
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="footer.ascx.vb"
Inherits="Service1.footer"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table>
<hr>
<small>All Contents Copyright © 2004 Services Inc.</small>
</td>
</tr>
</table>
</body>
</html>