下面是代码。它说“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;
提前致谢。