C# 如何获取DIV中ID的内容? <div id='show'>Hello World</div>请问用C#如何获取div中show的innerHTML? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <div id='show' 'runt=server'>Hello World</div>C#: show.innerHTML <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> 跪求DotNetMagic使用方法 一个关于WCF的问题 C#中怎么调用cmd来执行SQL脚本实现用户创建等操作 VC# 有没有函数帮助文档?CHM之类的 Excel合并单元格不成功!(急死人!) 有没有可能用C#读取Excel中的记录并批量产生表单 字符串转换成datetime时发生语法错误 怎么实现由事件触发在Table中添加TextBox的问题...急等着呀!!谢谢 新人提问,c#里面如何限制输入字符的长度?? 如何操作XML winform 通过键盘触发按钮事件后,如何获取datagridview内checkbox是否选择 text文本框 样式的问题
C#: show.innerHTML
<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>