错误 CS1061: “string”不包含“Text”的定义,并且找不到可接受类型为“string”的第一个参数的扩展方法
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSys...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.IO;
public partial class 招聘模块_zhaopin_gl : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DateTime loTime = DateTime.Now;
TextBox3.Text = loTime.ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
string title = TextBox1.Text;
string content = TextBox2.Text;
string datatime = TextBox3.Text;
bool insert = new UserManager().insertzhaoping(title,content,datatime);
if (insert==true)
{
Response.Write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
Response.Write("<script>alert('招聘发布成功')</script>");
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
}
}
在别的页面这样使用没事!突然出现的问题!~求高手帮助
一直说当前上下问不存在名称“textbox3"什么的!但页面上确实有的 展开
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.IO;
public partial class 招聘模块_zhaopin_gl : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DateTime loTime = DateTime.Now;
TextBox3.Text = loTime.ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
string title = TextBox1.Text;
string content = TextBox2.Text;
string datatime = TextBox3.Text;
bool insert = new UserManager().insertzhaoping(title,content,datatime);
if (insert==true)
{
Response.Write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
Response.Write("<script>alert('招聘发布成功')</script>");
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
}
}
在别的页面这样使用没事!突然出现的问题!~求高手帮助
一直说当前上下问不存在名称“textbox3"什么的!但页面上确实有的 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询