I have a usercontrol (.ascx) like this:\[code\]<% if (HasAccessMediaPlans) { iPortletCounter++; %> <div class="orange-portlet-box"> <div class="HomeModulePortletTitle"><a href="http://stackoverflow.com/questions/12714988/<%= (RawHtml)RootPath %>MediaPlanning/Default.aspx">Plans</a></div> <p>Create // Edit // Review</p> </div> <div style="clear: both;"></div><% } %>\[/code\]where HasAccessMediaPlans is a variable defined in user control's code behind(.ascx.cs) and it's assigned in page load.\[code\]protected Boolean HasAccessMediaPlans = false; protected void Page_Load(object sender, EventArgs e) { HasAccessMediaPlans = SessionState.CurrentUser.HasModuleAccess(MediaString + " Plans");}\[/code\]My question is: how can I avoid inline server code embeded in <% %> at my usercontrol markup(.ascx) ?