What is the error? Compiler?
-
I type (UserEmail.value == ""), because I want to check whether that textbox(UserEmail) is blanked or not. How come I get this error? Please help. Thanks. Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlInputText' does not contain a definition for 'value' Source Error: Line 51: Line 52: private void Signout_Click(Object Sender, EventArgs e) { Line 53: if (UserEmail.value == "") { Line 54: FormsAuthentication.SignOut(); Line 55: Response.Redirect("Login.aspx"); } Regards, Aaron
-
I type (UserEmail.value == ""), because I want to check whether that textbox(UserEmail) is blanked or not. How come I get this error? Please help. Thanks. Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlInputText' does not contain a definition for 'value' Source Error: Line 51: Line 52: private void Signout_Click(Object Sender, EventArgs e) { Line 53: if (UserEmail.value == "") { Line 54: FormsAuthentication.SignOut(); Line 55: Response.Redirect("Login.aspx"); } Regards, Aaron
DotNet wrote: How come I get this error? Exactly what the compiler message is saying. You mistyped
Value
. C# is case sensitive - Value begins with a capital V See: HtmlInputText Class[^] Also, you really should use code behind classes. Coding directly on the ASPX page isn't really good practice.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!