<div id='show'>Hello World</div>请问用C#如何获取div中show的innerHTML?

解决方案 »

  1.   

    <div id='show' 'runt=server'>Hello World</div>
    C#: show.innerHTML
      

  2.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
        <script>
           function show()
           {
            var show1=document.getElementById("show").innerHTML;
            alert(show1);
           }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="show" onclick="javascript:show()">
        hellow word
        </div>
        </form>
    </body>
    </html>