I’m new to ASP.NET and trying to retrieve data set from database but I’ve got an error as the title says
Here is the code, What’s the problem?
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)
{
}
}
protected void Button1_Click in which “void” is red underlined in vwd
Remove the } before “protected void Button1…”?