Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a masterpage to the UserLogin form
Message
From
14/04/2007 21:12:47
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Adding a masterpage to the UserLogin form
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01215975
Message ID:
01215975
Views:
70
MM vers 2.3
I'm trying to add a master page to the UserLogin.aspx form. The form compiles without error but focus doesn't go to the username field. I get an IE error icon Done but errors on this page when displayed. The error detail is:
Line:112
Char:1
Error:'getElementByID(...)' is null or not an object
...
How do I troubleshoot these type of errors ?
TIA Bill
Below is the source code for the form.
< %@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/WebQuote/Admin/admin.master" CodeFile="UserLogin.aspx.cs" CodeFileBaseClass="OakLeaf.MM.Main.Web.UI.mmBaseUserLogin" Inherits="UserLogin" StylesheetTheme="MMTheme" % >

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
    			<h1><mm:mmLabel id="lblUserLoginHeader" runat="server" Text="Application User Login" Font-Size="Medium"></mm:mmLabel></h1>
			<p>
                 <table style="WIDTH: 369px; HEIGHT: 100px" cellpadding="6" width="369" align="center" bgcolor="#eeeeee"
					border="0">
					<tr>
						<td class="blockheader" colspan="2"><strong><mm:mmlabel id="lblUserLogin" runat="server" text="User Login"></mm:mmlabel></strong>
						</td>
					</tr>
					<tr>
						<td style="WIDTH: 79px">
							<mm:mmlabel id="lblUserID" runat="server" text="User ID:"></mm:mmlabel>
						</td>
						<td><mm:mmTextBox runat="server" ControlID="00000000-0000-0000-0000-000000000000" IsPostBack="False"
								BindingSource="this" AccessLevel="Full" BindingSourceMember="Username" SecuritySetup="True"
								ID="txtUsername" size="20" maxsize="15" Width="148px"></mm:mmTextBox>
						</td>
					</tr>
					<tr>
						<td style="WIDTH: 79px">
							<mm:mmlabel id="lblPassword" runat="server" text="Password:"></mm:mmlabel>
						</td>
						<td>
							<mm:mmTextBox runat="server" ControlID="00000000-0000-0000-0000-000000000000" TextMode="Password"
								IsPostBack="False" BindingSource="this" Width="148px" AccessLevel="Full" BindingSourceMember="Password"
								SecuritySetup="True" ID="txtPassword" size="20" maxsize="15"></mm:mmTextBox>
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<p>
								<mm:mmbutton id="btnLogin" runat="server" text="Log in" width="120px" onclick="btnLogin_Click"></mm:mmbutton> 
								<mm:mmbutton id="btnLogout" runat="server" text="Log out" width="120px" onclick="btnLogout_Click"></mm:mmbutton></p>
						</td>
					</tr>
					<tr>
						<td></td>
						<td><asp:label id="lblErrorMessage" runat="server" width="264px" cssclass="errormessage"></asp:label></td>
					</tr>
				</table>
			</p>
				<hr>
    </div>
 </asp:Content>
Next
Reply
Map
View

Click here to load this message in the networking platform