@__ctrl.Title = System.Convert.ToString(this.GetLocalResourceObject("PageResource2.Title"),
我写完了一个程序后 做了一个多语言 但是出现了这样的错误, Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0029: Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.Label'
Source Error:
Line 1582: #line default
Line 1583: #line hidden
Line 1584: @__ctrl.Title = System.Convert.ToString(this.GetLocalResourceObject("PageResource2.Title"), System.Globalization.CultureInfo.CurrentCulture);
Line 1585: }
Line 1586:
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\71fcb340\4bbf355b\App_Web_managecontent.aspx.c9e75124.n-nx1xbw.0.cs Line: 1584
请问是怎么回事? 删除多语言后就正常了 谢谢
--------------------编程问答-------------------- 这么简单的问题也问 --------------------编程问答-------------------- 解释一下啊
--------------------编程问答-------------------- Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.Label'
不能将 string 类型隐式转换为 System.Web.UI.WebControls.Label 类型
补充:.NET技术 , ASP.NET