求助asp.net! - .NET技术 / 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;
public partial class Account_application : System.Web.UI.Page
{
protected void Page_Load(object sender,EventArgs e)
{
if(!IsPostBack)
this.Application["Data"]=System.DateTime.Now.ToString();
}
protected void btnSubmit_Click(object sender,EventArgs e)
{
StringBuilder sb = new StringBuilder();
foreach (string str in this.Application.Allkeys)
{
sb.Append("键值:" + str);
sb.Append("--对应的值为:" + Application[str]);
sb.Append("<br/>");
}
this.lblInfo.Text = sb.ToString();
}
}
报什么错也不说下??
this.Application,不用this
Application[str]==null?"":Application[str]
Application不属于哪个页面,不需要this。
请问错误在哪里? 你怎么不把错误贴出来?
sorry,发错误代码:
error CS0246: The type or namespace name 'StringBuilder' could not be found (are you missing a using directive or an assembly reference?)
error CS1061: 'System.Web
相关问答:
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
万网的服务器支持伪静态的,直接用rewrite在web.config文件写规则,也不用安装组件就可以实现伪静态,但是在时代互联服务器就用不了了,咨询它的客服,他说他们服务器(基本型C)不支持伪静态的.请问一下各位我该用什么方法 ......
大家好!我是一个学生,现在是学ASP的不知道怎么回事,我自己是用CMS做过网站 代码也能看懂一点 现在想买本书,想法有很多,就是想买ASP的 又看到大家说ASP以后没有NET前景好,我又想再去买本ASP.NET的 我知道有这样的想法 ......
各位大侠,我学习的是ASP.NET,想知道相关技术有哪些,就像JAVA EE中有struct sping jsp severlet 等,ASP.NET还有哪些些相关技术。
http://topic.csdn.net/u/20090914/21/af27de99-f0f3-4cfd-9379-13764f8ec6b1.ht ......