The server tag is not well formed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • preeti13
    New Member
    • Aug 2007
    • 67

    The server tag is not well formed.

    Hi friends i am getting the error into my applictaion The server tag is not well formed.i am trying to get the eomid here is my code please help me friends.
    Code:
    Page language="c#" Codebehind="Accomplishment.aspx.cs" AutoEventWireup="false" Inherits="Accomplishments.Accomplishment" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    	<HEAD>
    		<title>Accomplishment</title>
    		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    		<meta content="C#" name="CODE_LANGUAGE">
    		<meta content="JavaScript" name="vs_defaultClientScript">
    		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    	</HEAD>
    	<body>
    		<form id="Form1" method="post" runat="server">
    			<table height="100%" cellSpacing="0" width="700" align="center" border="1">
    				<tr>
    					<td height="50"><IMG src="header.jpg" width="700"></td>
    				</tr>
    				<tr>
    					<td vAlign="top">
    						<table cellPadding="5" width="700">
    							<tr>
    								<td><asp:label id="lblmsg" Font-Bold="True" ForeColor="#990000" Runat="server"></asp:label></td>
    							</tr>
    							<tr>
    								<td>FirstName:
    									<asp:textbox id="txtFirstName" Runat="server" ReadOnly="True"></asp:textbox>LastName:
    									<asp:textbox id="txtLastName" Runat="server" ReadOnly="True"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td>Login
    									<asp:textbox id="txtLogin" Runat="server" ReadOnly="True"></asp:textbox>Dept:<asp:textbox id="txtdept" Runat="server" ReadOnly="True"></asp:textbox></td></tr>
    									<tr>
    								<td>
    
    <asp:textbox id="txttest" Runat="server" Visible="False" OnDataBinding="'<%# DataBinder.Eval(Container.DataItem,"eomId")%>'"></asp:textbox>
    
    </td>
    							</tr>
    							<tr>
    								<td>DateCreated:
    									<asp:textbox id="txtdatecreated" Runat="server" ReadOnly="True"></asp:textbox>ProejctName:
    									<asp:dropdownlist id="drpProject" Runat="server" AutoPostBack="True">
    										<asp:ListItem Value="">Select a Project</asp:ListItem>
    										<asp:ListItem Value="01">Employee Nominations</asp:ListItem>
    										<asp:ListItem Value="02">Accomplishments</asp:ListItem>
    									</asp:dropdownlist><!--<asp:requiredfieldvalidator id="Project" Runat="server" ControlToValidate="drpProject" Display="Dynamic" ErrorMessage="*"></asp:requiredfieldvalidator>!-->
    									</td>
    							</tr>
    							<tr>
    								<td><asp:textbox id="txtdescription" Runat="server" TextMode="MultiLine" Height="150" Width="600"></asp:textbox></td>
    							</tr>
    							<tr>
    								<td><asp:button id="cmdSubmit" Runat="server" Text="Submit"></asp:button></td>
    							</tr>
    						</table>
    					</td>
    				</tr>
    			</table>
    		</form>
    	</body>
    </HTML>
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Which line is the server error pointing to ? I think it is probably the required field validator that you have commented out. Remove the required field validator and copy it to notepad temporarily. Now save the file and try to show the page in a browser again.

    Nathan

    Comment

    • preeti13
      New Member
      • Aug 2007
      • 67

      #3
      Hi it is pointing this line

      Code:
      <td><asp:textbox id="txttest" Runat="server" Visible="False"  OnDataBinding ="'<%# DataBinder.Eval(Container.DataItem,"eomId")%>'"></asp:textbox></td>

      Comment

      • nateraaaa
        Recognized Expert Contributor
        • May 2007
        • 664

        #4
        Originally posted by preeti13
        Hi it is pointing this line

        Code:
        <td><asp:textbox id="txttest" Runat="server" Visible="False"  OnDataBinding ="'<%# DataBinder.Eval(Container.DataItem,"eomId")%>'"></asp:textbox></td>
        Remove the double quote around your DataBind.Eval statement. Surround it with a single quote only.
        [CODE=html]OnDataBinding ='<%# DataBinder.Eval (Container.Data Item,"eomId")%> '[/CODE]

        Comment

        Working...