易截截图软件、单文件、免安装、纯绿色、仅160KB

求助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


相关问答:

动态取得asp类成员

有一个类
class adc
{
dim a,b,c
}
如何在另外一个类中取得类成员及成员个数
class getmenber
{
dim menbers()
function getmenbers(resclass)
'res为一未知类
'getmenber ......

在asp.net里面脚本出错 - .NET技术 / ASP.NET

function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

asp.net导出EXCEL问题! - .NET技术 / ASP.NET

C# code:

SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......

asp.net程序员求职 - .NET技术 / 非技术区

本人工作经验一年以上
熟悉asp.net
熟悉javascript
熟悉Css
熟悉ajax
熟悉sqlserver2005
有一年的项目经验
具体项目和其他的就不在这写了
有意者联系:
QQ:359233910
引用
本人工作经验一年以上
熟悉asp ......

ASP.NET相关技术 - .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 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号