请问javascript报错,是为什么 - .NET技术 / VB.NET
我用VS2005实现的是,第一个文本框,如果不输入的时候,点击Confirm的时候会弹出“不允许为空”的对话框,然后我在WEB页面输出的时候,并没有对话框弹出,而且在下面有个错误的信息:
'document.Form1.txtID' is null or not an object Line:14, Char:2
Default.asp
Code:0
URL: http://localhost/Tool/Default.aspx
请问我该如何解决
下面是我在WEB页面,右击,选择“浏览代码”的结果
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Delete Burn In RawData
</title><meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" /><meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1" /><meta name="vs_defaultClientScript" content="JavaScript" /><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<script language="javascript" type="text/javascript">
// <!CDATA[
function btnConfirm_onclick(button) {
var ret=false;
if (isBlank(document.Form1.txtID.value)) {
alert('Please key in ID.');
document.Form1.txtID.focus();
} else {
相关问答:
怎么把已知的数据保存成xml文件,现在已知的数据是
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o=& ......
现在有个xml文件是<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
dim a as string,b as string,c as string
a="工程编号,单位工程名称,分部工程编号"
b="单位工程名称"
c="单位"
怎么才能判断出a字符串中存在b字符串,而不存在c字符串
看看i ......
我的要求是:通过抓取别的程序上的表格的句柄,然后读取这个表格的内容。
表格句柄(类名:MSFlexGridWndClass)我已抓到,接下来如何读取表格的内容就不会了?求助。
能把代码发来学习下不?
244326867@qq.com ......