请问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 {
相关问答:
在vb中如何读取Word内容(包含表格,图片,等)
竟然不是zero。
不知道怎么实现的不要说话
这个只能读文本,
VB code:
Private Sub Command1_Click()
Dim WordApp As Object
Set WordApp = CreateObject(& ......
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现?
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......
现在有个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 ......
挺繁琐,之前发的帖子,分值太低现在重发一个。欢迎各位大侠~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......