我才开始学C#,这段代码怎么老出错啊?

来源:百度知道 编辑:UC知道 时间:2024/06/01 04:41:40
我就想简单测试下,总是出错
Compiler Error Message: CS0260: Missing partial modifier on declaration of type 'Test.ATest'; another partial declaration of this type exists

Source Error:

Line 2: namespace Test
Line 3: {
Line 4: public class ATest
Line 5: {
Line 6: static void tests(string[] args)

Source File: c:\Inetpub\wwwroot\ASP.NET\CheckNet.aspx.cs Line: 4
-------------------
WebForm.aspx:

<%@ Page Language="C#" ContentType="text/html" CodeFile="CheckNet.aspx.cs" Inherits="Test.ATest" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content

<%---
不明白你那是什么!!!
--%>
<%------------------------Defalut2.aspx文件 --------------------------------%>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!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 runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">

</script>
</head>
<body>
<form id="form1" runat="server&