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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. SpellCheck Error

SpellCheck Error

Scheduled Pinned Locked Moved ASP.NET
designhelpworkspace
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.
  • R Offline
    R Offline
    rockram
    wrote on last edited by
    #1

    Code: using System; using System.IO; using System.Configuration; using System.Data; using System.Collections; using System.Text; partial class Default2 : System.Web.UI.Page { private string[] strDictArray; private bool boolDictionaryLoaded = false; private int intErrors = 0; protected void Page_Load(object sender, System.EventArgs e) { int iCurrentCount = 0; string[] arrWords; string strCompleteOriginal = ""; int iWordCount = 0; string strAlternative = ""; int i = 0; if (string.Trim(Request.Querystring["txtContent"]) == "") { return; // TODO: might not be correct. Was : Exit Sub } else { strCompleteOriginal = string.Trim(Request.Querystring("txtContent")); } if (!IsPostBack==false) { iCurrentCount = 0; iWordCount = 0; intErrors = 0; hfOriginalstring.Value = strCompleteOriginal; hfCurrentCount.Value = "0"; arrWords = string.Split(strCompleteOriginal, " "); iWordCount = arrWords.Length; hfWordCount.Value = iWordCount; hfErrors.Value = "0"; } else { arrWords = string.Split(hfOriginalstring.Value, " "); iCurrentCount = hfCurrentCount.Value; intErrors = int.Parse(hfErrors.Value); } txtCurrent.Value = arrWords[iCurrentCount]; if (Request.Form["cmdCancel"] == "Stop") { arrWords = string.Split(hfOriginalstring.Value, " "); iWordCount = hfWordCount.Value; string strReplace = hfFinal.Value; int j = 0; for (j = iCurrentCount; j <= iWordCount - 1; j++) { strReplace += arrWords[j] + " "; } intErrors -= 1; stopChecking("frmSpellCheck", "txtContent", strReplace); return; // TODO: might not be correct. Was : Exit Sub } if (Request.Form["cmdNext"] == "Next") { arrWords = string.Split(hfOriginalstring.Value, " "); iWordCount = hfWordCount.Value; if (txtManual.Value == "") { arrWords[iCurrentCount] = lbSuggestions.SelectedValue; hfFinal.Value += lbSuggestions.SelectedValue + " "; } else { arrWords[iCurrentCount]

    C 1 Reply Last reply
    0
    • R rockram

      Code: using System; using System.IO; using System.Configuration; using System.Data; using System.Collections; using System.Text; partial class Default2 : System.Web.UI.Page { private string[] strDictArray; private bool boolDictionaryLoaded = false; private int intErrors = 0; protected void Page_Load(object sender, System.EventArgs e) { int iCurrentCount = 0; string[] arrWords; string strCompleteOriginal = ""; int iWordCount = 0; string strAlternative = ""; int i = 0; if (string.Trim(Request.Querystring["txtContent"]) == "") { return; // TODO: might not be correct. Was : Exit Sub } else { strCompleteOriginal = string.Trim(Request.Querystring("txtContent")); } if (!IsPostBack==false) { iCurrentCount = 0; iWordCount = 0; intErrors = 0; hfOriginalstring.Value = strCompleteOriginal; hfCurrentCount.Value = "0"; arrWords = string.Split(strCompleteOriginal, " "); iWordCount = arrWords.Length; hfWordCount.Value = iWordCount; hfErrors.Value = "0"; } else { arrWords = string.Split(hfOriginalstring.Value, " "); iCurrentCount = hfCurrentCount.Value; intErrors = int.Parse(hfErrors.Value); } txtCurrent.Value = arrWords[iCurrentCount]; if (Request.Form["cmdCancel"] == "Stop") { arrWords = string.Split(hfOriginalstring.Value, " "); iWordCount = hfWordCount.Value; string strReplace = hfFinal.Value; int j = 0; for (j = iCurrentCount; j <= iWordCount - 1; j++) { strReplace += arrWords[j] + " "; } intErrors -= 1; stopChecking("frmSpellCheck", "txtContent", strReplace); return; // TODO: might not be correct. Was : Exit Sub } if (Request.Form["cmdNext"] == "Next") { arrWords = string.Split(hfOriginalstring.Value, " "); iWordCount = hfWordCount.Value; if (txtManual.Value == "") { arrWords[iCurrentCount] = lbSuggestions.SelectedValue; hfFinal.Value += lbSuggestions.SelectedValue + " "; } else { arrWords[iCurrentCount]

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Well, those errors are all true. Do you know C# at all ? I am assuming you copied some code from the web and have no idea how to understand these error messages. If I were to correct them for you, you'd still be lost. Buy a basic book on C# and read it. Read the error messages, what they say is true. 1 - C# is case sensitive. QueryString 2 - Did you mean to call Split or Replace ? Split expects a char, not a string. 3 - a string is an array of chars 4 - TextBox most certainly does not contain a definition for Value. It DOES have a Text property. Please try to learn some basics, and perhaps even learn to do some searching, we love to help, but we'd like to assume some basic effort/ability on the part of those asking, too.

      Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

      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