Hello,
I have a problem to change title page at runtime.
In the page ASPX :
<title runat="server" id="pageTitle"></title>
In code behind :
public partial class _Default : System.Web.UI.Page
In the Page_Load:
pageTitle.InnerText = ConfigurationManager.AppSettings["WebSiteName"];
But I receive this error :
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: CS0102: The type '_Default' already contains a
definition for 'pageTitle'
When I replace pageTitle.InnerText but a textbox no problem.
Any idea ?
Thanks,