且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在访问数据库中找不到dataitem时,为消息框调用JavaScript

更新时间:2023-11-18 16:02:58

除非您将其写到客户端,否则使用js创建字符串是毫无用处的.您的脚本是否已写入最后一页?页面上有js错误吗?为什么要在执行回发时弹出警报,为什么不在页面中仅显示错误字段?
Creating a string with your js in it is worthless unless you write it out to the client. Is your script being written in to the final page ? Are there any js errors on the page ? Why pop up an alert when you''e done a postback, why not just have an error field in the page ?


感谢您的回答
我在页面中有一个错误字段:
如果textbox1.text =''dataitem''然后
msgbox(右")
其他
msgbox(错误")
如果
结束 当单词在数据库中时,显示msgbox"right"

但是当单词不在数据库中时,不会显示msgbox错误"
thank you for your answer
I have an error field in the page:
if textbox1.text=''dataitem'' then
msgbox("Right")
else
msgbox("wrong")
end if
when the word is in the database msgbox "right" is displayed

but when the word is not in the database msgbox "wrong" is not displayed