我在{上有一个类型预期错误,但我没有错过任何关闭。
我真的不知道问题是什么,我已经寻找解决方案,我知道我有很多评论,但这只是代码不能用于某些不同的原因。
namespace Antiques
{
public partial class About : System.Web.UI.Page, //ISaleManagerUI
{
protected void Page_Load(object sender, EventArgs e)
{
public void LoadData()
{
try
{
Application.Lock();
UpdateListbox();
Application.UnLock();
}
catch (FileNotFoundException)
{
lblerror.Text = "Error: Not found, must save first";
}
}
protected void Load_Click(object sender, EventArgs e)
{
LoadData();
}
public void AddData()
{
var response = base.Response;
response.Redirect("Default.aspx", true);
}
protected void btnAddBox_Click(object sender, EventArgs e)
{
AddData();
}
public void UpdateListbox()
{
}
protected void lb1_Init(object sender, EventArgs e)
{
UpdateListbox();
}
protected void Delete_Click(object sender, EventArgs e)
{
while (lb1.SelectedIndex != -1)
{
ListItem mySelectedItem = (from ListItem li in lb1.Items where li.Selected == true select li).First();
lb1.Items.Remove(mySelectedItem);
}
}
protected void lb1_SelectedIndexChanged(object sender, EventArgs e)
{
}
public void SaveData()
{
}
protected void Save_Click(object sender, EventArgs e)
{
SaveData();
}
}
}
答案 0 :(得分:3)
在类声明结尾处删除逗号:
public partial class About : System.Web.UI.Page,
期待你没有提供的其他类型。