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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -