title: Difference between ' (single quote) and “ (double quote) in ASP.NET 4
body: <p>I want to call MyMethod in code-behind from server control in aspx page like below.</p>
  
  <p>MyPage.aspx</p>
  
  <pre><code>&lt;asp:Label ID="MyLabel" runat="server" Text='&lt;%# MyMethod(Eval("MyColumn")) %&gt;'&gt;
  </code></pre>
  
  <p>MyPage.aspx.cs</p>
  
  <pre><code>protected void MyMethod(object obj) { ... }
  </code></pre>
  
  <p>If I use <code>"</code> instead <code>'</code> in aspx page then it will give me a compilation error <strong>The server tag is not well formed.</strong> as below.</p>
  
  <pre><code>&lt;asp:Label ID="MyLabel" runat="server" Text='&lt;%# MyMethod(Eval("MyColumn")) %&gt;'&gt; // This line work
  &lt;asp:Label ID="MyLabel" runat="server" Text="&lt;%# MyMethod(Eval("MyColumn")) %&gt;"&gt; // This line error
  </code></pre>
  
  <p>I want to know why I need to use single-quote, is it a rule? How can I use double-quote in my situation?</p>