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. Post back gives iexplore.exe error w/ ASP.NET v1.1

Post back gives iexplore.exe error w/ ASP.NET v1.1

Scheduled Pinned Locked Moved Web Development
helpcsharphtmlasp-netperformance
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.
  • B Offline
    B Offline
    bubberz
    wrote on last edited by
    #1

    Hello! I can type in the value in one text box, then it'll go to the code behind of another page and do the correct functionality....which will tell the user if the number is distinct or not. The only problem is when I post back the page via the button_click event, I get an IE error, iexplore.exe error, The instruction at "0x4a594476" referenced memory at "0x00000004". The memory could not be "read". HTML code is: WebForm1 var xmlHttp = createXmlHttpRequestObject(); function createXmlHttpRequestObject() { var xmlHttp; if(window.ActiveXObject) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { xmlHttp = false; } } else { try { xmlHttp = new XMLHttpRequest(); } catch (e) { xmlHttp = false; } } if (!xmlHttp) { alert("Error creating the XMLHttpRequest object."); } else { return xmlHttp; } } function process() { varWBS = encodeURIComponent(document.getElementById("TextBox1").value); xmlHttp.open("GET", "test.aspx?WBS=" + varWBS); xmlHttp.onreadystatechange = handleServerResponse; xmlHttp.send(null); } function handleServerResponse() { //if (xmlHttp.readyState == 4 && xmlHttp.status == 200) //{ // document.getElementById("show").innerHTML = xmlHttp.responseText; //} //} //New code if (xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { var parentElement = document.getElementById('show'); var wrappingDiv = document.createElement('div'); wrappingDiv.innerHTML = document.getElementById("TextBox1").value+' '+xmlHttp.responseText; parentElement.appendChild(wrappingDiv); //document.getElementById("show").innerHTML = xmlHttp.responseText; //document.all[show].innerHTML = xmlHttp.responseText; } else { alert("hmmmm"); } </x-turndown>

    E 1 Reply Last reply
    0
    • B bubberz

      Hello! I can type in the value in one text box, then it'll go to the code behind of another page and do the correct functionality....which will tell the user if the number is distinct or not. The only problem is when I post back the page via the button_click event, I get an IE error, iexplore.exe error, The instruction at "0x4a594476" referenced memory at "0x00000004". The memory could not be "read". HTML code is: WebForm1 var xmlHttp = createXmlHttpRequestObject(); function createXmlHttpRequestObject() { var xmlHttp; if(window.ActiveXObject) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { xmlHttp = false; } } else { try { xmlHttp = new XMLHttpRequest(); } catch (e) { xmlHttp = false; } } if (!xmlHttp) { alert("Error creating the XMLHttpRequest object."); } else { return xmlHttp; } } function process() { varWBS = encodeURIComponent(document.getElementById("TextBox1").value); xmlHttp.open("GET", "test.aspx?WBS=" + varWBS); xmlHttp.onreadystatechange = handleServerResponse; xmlHttp.send(null); } function handleServerResponse() { //if (xmlHttp.readyState == 4 && xmlHttp.status == 200) //{ // document.getElementById("show").innerHTML = xmlHttp.responseText; //} //} //New code if (xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { var parentElement = document.getElementById('show'); var wrappingDiv = document.createElement('div'); wrappingDiv.innerHTML = document.getElementById("TextBox1").value+' '+xmlHttp.responseText; parentElement.appendChild(wrappingDiv); //document.getElementById("show").innerHTML = xmlHttp.responseText; //document.all[show].innerHTML = xmlHttp.responseText; } else { alert("hmmmm"); } </x-turndown>

      E Offline
      E Offline
      Edbert P
      wrote on last edited by
      #2

      The error may have been caused by this part of your code:

      var parentElement = document.getElementById('show');
      var wrappingDiv = document.createElement('div');
      wrappingDiv.innerHTML = document.getElementById("TextBox1").value+' '+xmlHttp.responseText;
      parentElement.appendChild(wrappingDiv);

      Try appending the div to the parent element first before setting the value, and you may want to use innerText instead of innerHTML. Also, is your xmlHttp.responseText a HTML script? If yes, that might be the cause of the problem. You're better off writing your html via javascript than setting it via innerHTML property. "You are special, but so is everybody else." "Democracy is two wolves and a sheep voting on what to have for dinner" - Ross Edbert Sydney, Australia

      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