title: How to use 'Using' keyword in ASP.NET page without code behind
body: <p>I want to include some namespaces with their classes in my asp.net application. It is possible with <code>using</code> keyword ?</p>
  
  <p>I have this:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
      &lt;%
         SomeNamespace.Models.NewsModel getNewsDetail = ViewData["NewsDetail"] as SomeNamespace.Models.NewsModel;
  
         if ( getNewsDetail != null ) {
              %&gt;
              &lt;h2&gt;'&lt;%= getNewsDetail.NewsTitle%&gt;' details&lt;/h2&gt;
              &lt;div class="discipline-details"&gt;
              &lt;ul&gt;
              &lt;li&gt;
              &lt;h3&gt; &lt;%= getNewsDetail.NewsTitle%&gt;&lt;/h3&gt;            
              &lt;p&gt;&lt;%= getNewsDetail.NewsDescription%&gt;&lt;/p&gt;
              &lt;/li&gt;
              &lt;/ul&gt;
              &lt;/div&gt;
      &lt;%
            } else {
           %&gt; &lt;p class="error"&gt;No news is available. Below is listed the available news.&lt;/p&gt;
           &lt;div id="home-news"&gt;
  
          &lt;/div&gt;
            &lt;%
            }
       %&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>I used MVC2 architecture ...</p>
  
  <p>I want to use directly the class <code>NewsModel getNewsDetail = ViewData["NewsDetail"] as NewsModel</code>.</p>
  
  <p>Thank you and sorry if my question is poor.</p>