ASP.NET初始化页面就出错,求助
protectedvoidPage_Load(objectsender,EventArgse){if(!Page.IsPostBack){this.txtLoginNam...
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack) {
this.txtLoginName = "";
this.txtPassword = "";
this.txtName = "";
this.txtAge = "";
this.txtAddress = "";
}
}
编译时报:错误 1 无法将类型“string”隐式转换为“System.Web.UI.WebControls.TextBox” C:\Documents and Settings\jms\My Documents\Visual Studio 2005\WebSites\WebSite1\Default.aspx.cs 21 33 C:\...\WebSite1\
的错,怎么修改? 展开
{
if (!Page.IsPostBack) {
this.txtLoginName = "";
this.txtPassword = "";
this.txtName = "";
this.txtAge = "";
this.txtAddress = "";
}
}
编译时报:错误 1 无法将类型“string”隐式转换为“System.Web.UI.WebControls.TextBox” C:\Documents and Settings\jms\My Documents\Visual Studio 2005\WebSites\WebSite1\Default.aspx.cs 21 33 C:\...\WebSite1\
的错,怎么修改? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询