asp.net - label text not persisting on a published website -


i have label on master page default text

<dxe:aspxlabel id="m_label" runat="server" font-bold="true"      forecolor="white" righttoleft="true" text="labeltext">                     </dxe:aspxlabel> 

and set text on master page

if (!page.ispostback && !page.iscallback) {  if(condition)  {    m_label.text="one"  }  else  {   m_label.text="two"  }  } 

if run web page source code displays correct text i.e 1 or two. if publish web page , open page says "labeltext"

am missing anything?

just thought, page being cached? noticed code set run when not postback (i.e. request) , such, subject caching. try ctrl+f5 in internet explorer force refresh. alternatively, using proxy server? may caching page.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -