Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. What is the error? Compiler?

What is the error? Compiler?

Scheduled Pinned Locked Moved ASP.NET
helpquestiondesignlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DotNet
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • D DotNet

      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

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups