locked
What is my error RRS feed

  • Question

  • Hi all

    i write a simple JS code in my html page.

    <script type='text/javascript'>
        var w=document.getElementById('wellcome');
        w.innerText='hello';
    </script>

    i want to run this code from my vb code behind so i wrote this in my Page_load event.

    Dim JSSTR= " <script type='text/javascript'> " _
        & "var w=document.getElementById('W');" _
        & " w.innerText='hello'; </script>"
    Response.Write(JSSTR)
    but the last code does not work, any hint??

    • Moved by Mike Danes Monday, September 9, 2013 6:31 AM asp.net related
    Sunday, September 8, 2013 10:02 PM

Answers