using System;
using System.IO;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;public partial class admin_login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ }
}
protected void Button1_Click(object sender, EventArgs e)
{
if (vali_box.Text == Session["ValidateCode"].ToString())
{
TextBox1.Text = "正确!";
}
else
TextBox1.Text = "错误!";
}
}
}
怎么编译器有这个错误的呢??
-------------------------------------------------------------------------
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS1518: 应输入 class、delegate、enum、interface 或 struct源错误: 行 17: }
行 18: }
行 19: protected void Button1_Click(object sender, EventArgs e)
行 20: {
行 21: if (vali_box.Text == Session["ValidateCode"].ToString())
using System.IO;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;public partial class admin_login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ }
}
protected void Button1_Click(object sender, EventArgs e)
{
if (vali_box.Text == Session["ValidateCode"].ToString())
{
TextBox1.Text = "正确!";
}
else
TextBox1.Text = "错误!";
}
}
}
怎么编译器有这个错误的呢??
-------------------------------------------------------------------------
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS1518: 应输入 class、delegate、enum、interface 或 struct源错误: 行 17: }
行 18: }
行 19: protected void Button1_Click(object sender, EventArgs e)
行 20: {
行 21: if (vali_box.Text == Session["ValidateCode"].ToString())
解决方案 »
- 网站传到服务器上后有些新闻的图片就无法显示了,路径却是对的!
- 当连续3条数据相同时用橙色显示,当连续5条数据相同时,用红色显示
- asp.net 中向SQL Server表插入有规律的数据
- 如何获取WebGrid中被选中的项
- !菜鸟级的问题,高手赐教!
- ASP.NET中连接数据库的错误信息(请高手赐教)
- 请问怎样使用Sas 9.1.3校验单词是否正确
- 急急急急急急急,救命!!!!!!!!!!!!!!!!!!送分
- 请问一些权限的问题
- 怎么才能用string内的split方法分开下面的路径:
- 请问我用VS2005里的水晶报表,我发布到服务器上怎样才能在服务器上运行水晶报表?
- 紧急求救,这段代码什么意思
{
protected void Page_Load(object sender, EventArgs e)
{ }
}//多了一个括号
protected void Button1_Click(object sender, EventArgs e)
{
if (vali_box.Text == Session["ValidateCode"].ToString())
{
TextBox1.Text = "正确!";
}
else
TextBox1.Text = "错误!";
}
}
}//多了一个括号
{
protected void Page_Load(object sender, EventArgs e)
{ }
}--------这个括号没有对应的应该是多的
protected void Button1_Click(object sender, EventArgs e)
{
if (vali_box.Text == Session["ValidateCode"].ToString())
{
TextBox1.Text = "正确!";
}
else
TextBox1.Text = "错误!";
}
}-------------这个括号没对应的,也是多的
}其他的代码没有语法错误
{
protected void Page_Load(object sender, EventArgs e)
{ }
}--------这个括号没有对应的应该是多的
protected void Button1_Click(object sender, EventArgs e)
{
if (vali_box.Text == Session["ValidateCode"].ToString())
{
TextBox1.Text = "正确!";
}
else
TextBox1.Text = "错误!";
}
}
}-------------这个括号没对应的,也是多的
其他的代码没有语法错误