易截截图软件、单文件、免安装、纯绿色、仅160KB

这段JavaScript代码为什么无法执行 - .NET技术 / C#

以下是一段JavsScript脚本,但运行时总会产生 “Microsoft JScript 运行时错误: 'null' 为空或不是对象”异常,大家帮看一下。 
<form id="form1" runat="server">
  <asp:TextBox ID="TextBox1" runat="server" Text =""></asp:TextBox>
  <script id="scr1" type ="text/javascript" >
  function getValue() {
  var x = document.getElementById("Text1");
  alert (x.getAttribute("Text"))
  }
  </script>

  <input id="Button1" type="button" value="button" onclick ="getValue()"
<asp:TextBox ID="TextBox1" runat="server" Text =""> </asp:TextBox> 
  <script id="scr1" type ="text/javascript" > 
  function getValue() { 
  var x = document.getElementById("<%= TextBox1.ClientID %>"); 
  alert (x.getAttribute("value")) 
  } 
  </script> 

  <input id="Button1" type="button" value="button" onclick ="getValue()"

document.getElementById("TextBox1"); 
或document.getEl


相关问答:

求c#操作sqlserver数据库问题

在数据库中有张表,有id,name两列,id 是主键,没有设置自增属性,在程序中取出这张表放入datatable,在这个datatable中插入一条记录,当更新数据库时提示id列不能为空,请问该怎么解决?
给它一个值!!主键不能为空 ......

C#填网页表单的问题 - .NET技术 / C#

我这里有一个登陆WIFI网络的页面。由于WIFI经常断线,所以要反复地在这个网页上登陆,没法无人值守。
所以,我想做一个C#程序,放一个webbrowser控件,自动填表并自动点击提交按钮。
问题一:
基本照网上找的程序 ......

如何用javascript在页面中动态更新某一块的内容?

我的源文件如下:
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
    {
     
    ......

求一段delphi代码转C#代码,急用,可人民币支付,谢谢

急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:

unit UShare;
interface
uses Windows, Me ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号