Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi iam getting error in


XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" MasterPageFile="~/MasterPage.master" %>


   <asp:Content ID=" Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="style1">

        <strong>Login Page</strong></div>
    <table class="style2">
        <tr>
            <td class="style3">
                UserName</td>
            <td>
                <asp:TextBox ID="TextBoxUserName" runat="server" Width="180px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="TextBoxUserName" ErrorMessage="Please Enter User Name"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                Password</td>
            <td>
                <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"
                    Width="180px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="TextBoxPassword" ErrorMessage="Please Enter Password"
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                <asp:Button ID="Button_Login" runat="server" onclick="Button_Login_Click"
                    Text="Login" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>

  </asp:Content>






Error msg

Error 1 ' Content1' is not a valid identifier. C:\Users\MR002\Documents\Visual Studio 2010\WebSites\LoginWebsite1\Login.aspx 4
Posted
Comments
Maarten Kools 1-Mar-14 0:29am    
There's a space in front of Content1, remove it and it should work.
Tom Marvolo Riddle 1-Mar-14 0:31am    
yes,you're right

1 solution

There's a space in front of Content1, remove it and it should work.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900