title: How to detect if Edit Mode is enabled on the server side in DNN 9?
body: <p>How can I detect if DNN is in Edit Mode in the Back-End code?</p>
  
  <p>I looked at this link, but it seems to deal with DNN7 on the Client-Side: <a href="http://www.dnnsoftware.com/answers/dnn7-detect-page-edit-mode-in-js" rel="nofollow noreferrer">http://www.dnnsoftware.com/answers/dnn7-detect-page-edit-mode-in-js</a></p>
  
  <p>For example:</p>
  
  <pre><code>if(DotNetNuke.EditMode == true){
  // Do Something
  }
  </code></pre>