c# - Variables are not recognized on Master partial class -
its old project, .net 3.5, i'm trying update 4.5. i'm trying use master pages:
nzhos3colnew.master
<%@ master language="c#" autoeventwireup="true" codefile="nzhos3colnew.master.cs" inherits="nzjobfinder.nztemplatemasterpage" %>
nzhos3colnew.master.cs
namespace nzjobfinder { public partial class nztemplatemasterpage: system.web.ui.masterpage { protected void page_load(object sender, eventargs e) litloginstyle.text = "style='height:10px;padding-top:5px;width:70px;left:890px;top:10px;'";
but, when building, get:
error 24 name 'litloginstyle' not exist in current context c:\nzjobfinder\app_master\nzhos3colnew.master.cs 25 21 nzjobfinder
any helps here? missing? thanks.
Comments
Post a Comment