【发布时间】:2013-01-14 21:10:17
【问题描述】:
下面是代码。它说“DisplayMessage”的地方是我有问题的地方。
protected void btnSend_Click(object sender, EventArgs e)
{
SendMail();
DisplayMessage.Text = "Thank you for the comment! Please hit the 'Return to Main Page' to return to the Main Page!";
DisplayMessage.Visible = true;
txtPhone.Text = "";
txtEmail.Text = "";
txtName.Text = "";
txtComment.Text = "";
}
我是否缺少某种资源?这是我目前正在使用的。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
提前致谢。
【问题讨论】:
-
你的错误是什么?
-
DisplayMessage 是标记 aspx 页面中的控件吗?
标签: c# asp.net web-applications web