私は C# を使用して ASP.Net でログイン ページを作成しています。usernameという名前のテキストボックスが含まれていますが、Login.aspx.csでテキストボックスを参照して、このテキストボックスの検証を行うと...
if(string.IsNullOrEmpty(username.Text))
{
...
...
}
...というエラーが表示されます... "The 'username' doesn't exist in the current context"
... ...どうすればこのエラーを取り除くことができますか....それは私をマスにしています....このエラーに対してかなりの助けが必要です...お願いします助けて ....
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> </asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">