如题,帮我看下这代码哪里出问题了。怎么用CSC编译不了呀??
public object ds1()
{
get
{
return checixx0.DataSource;
}
set
{
checixx0.DataSource = value; Invalidate();
}
}
在这里老是提示get,set后面应该加;但是加了也不行?
所有代码在下面
namespace train
{
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public class checixx:System.Web.UI.UserControl
{
public DataGrid checixx0;
public void Page_Load(object sender,System.EventArgs e)
{
}
public object ds1()
{
get
{
return checixx0.DataSource;
}
set
{
checixx0.DataSource = value; Invalidate();
}
}
public object ds0(object sender,System.EventArgs e)
{
object ds = checixx0.DataBind();
}
}
}