“string”不包含“Text”的定义,并且找不到可接受类型为“string”的第一个参数的扩展方法“Te
publicpartialclassMail_SenderMail:System.Web.UI.Page{privatestringconn=System.Web.Con...
public partial class Mail_SenderMail : System.Web.UI.Page
{
private string conn = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ConnectionWebGmail"].ToString();
private string writer = HttpContext.Current.User.Identity.Name.ToString();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string receiver = Request.QueryString["receiver"].ToString();
string replyer = Request.QueryString["replyer"].ToString();
if (replyer == "0")
{
}
else
{
receiver.Text = replyer;
}
if (receiver == "0")
{
}
else
{
receiver.Text = receiver;
}
DataTable dt = new DataTable();
int id = int.Parse(Request.QueryString["D_id"]);
if (id == 0)
{
}
else
{
dt = get_draft(id);
//DropDownList1.Text = dt.Rows[0][5].ToString();
receiver.Text = dt.Rows[0][4].ToString();
txb_title.Text = dt.Rows[0][1].ToString();
txb_content.Text = dt.Rows[0][2].ToString();
}
}
} 展开
{
private string conn = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ConnectionWebGmail"].ToString();
private string writer = HttpContext.Current.User.Identity.Name.ToString();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string receiver = Request.QueryString["receiver"].ToString();
string replyer = Request.QueryString["replyer"].ToString();
if (replyer == "0")
{
}
else
{
receiver.Text = replyer;
}
if (receiver == "0")
{
}
else
{
receiver.Text = receiver;
}
DataTable dt = new DataTable();
int id = int.Parse(Request.QueryString["D_id"]);
if (id == 0)
{
}
else
{
dt = get_draft(id);
//DropDownList1.Text = dt.Rows[0][5].ToString();
receiver.Text = dt.Rows[0][4].ToString();
txb_title.Text = dt.Rows[0][1].ToString();
txb_content.Text = dt.Rows[0][2].ToString();
}
}
} 展开
展开全部
receiver.Text的问题,receiver是字符串,肯定没有Text属性啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询