我在aspx页面中收到错误 [英] iam getting error in aspx page
本文介绍了我在aspx页面中收到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我收到错误
hi
iam getting error in
<%@ 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>
</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>
</td>
</tr>
<tr>
<td class="style4">
</td>
<td>
<asp:Button ID="Button_Login" runat="server" onclick="Button_Login_Click"
Text="Login" />
</td>
<td>
</td>
</tr>
<tr>
<td class="style4">
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
错误消息
错误1' Content1'不是有效的标识符。 C:\ Users \ RM002 \Documents\Visual Studio 2010 \WebSites\LoginWebsite1 \Login.aspx 4
Error msg
Error 1 ' Content1' is not a valid identifier. C:\Users\MR002\Documents\Visual Studio 2010\WebSites\LoginWebsite1\Login.aspx 4
推荐答案
前方有一个空间 Content1
,删除它,它应该可以工作。
There's a space in front of Content1
, remove it and it should work.
这篇关于我在aspx页面中收到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文