预期的类,委托,枚举,接口或结构

hkg*_*ile 0 c# asp.net

我是ASP.NET的新手并尝试从数据库中检索数据集,但标题显示我遇到了错误

这是代码,有什么问题?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Admin_addNode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var category = new category();
        DataSet ds = new DataSet();
        ds = category.getNode();
        DataTable tbl = ds.Tables[0];
        for (int i = 0; i < tbl.Rows.Count; i++)
        {
        DataRow myRow = tbl.Rows[i];
        string MyValue = myRow["title"].ToString();
        Response.Write(MyValue);
        }
    } 


    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}
Run Code Online (Sandbox Code Playgroud)

protected void Button1_Click在vwd中以红色下划线标出"void"

Ben*_*Ben 5

在"protected void Button1 ..."之前删除}?