日期:2014-05-18  浏览次数:20414 次

很简单的问题,为什么会出错
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sys_docam.aspx.cs" Inherits="sys_cam_sys_docam" %>

<!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>无标题页</title>
  <script type="text/javascript" language="javascript">
  function gotourl() 
  {
  alert("请填写权限组名称!");

  }


   
  </script>
   
</head>

<body>
  <form id="form1">
<div ><input type="button" id="gotourl" value="10.20.66.26" class="button1" onclick="gotourl()" />
  </div>
  </form>
</body>
</html>


------解决方案--------------------
id="gotourl" 应该是跟 gotourl() 重复
id="gotourl" 或者gotourl() 名称改一下。
------解决方案--------------------

<form id="form1">
</form>
去掉