title: WebForms Eval() with function and others variables
body: <pre><code>&lt;%
      DateTime date;
      var culture = new System.Globalization.CultureInfo("pt-BR");
  
      DateTime.TryParseExact(Eval("pubDate").ToString(), "dd MMM", culture, System.Globalization.DateTimeStyles.AssumeLocal, out date);
  
      var b = date.ToString();
   %&gt;
  </code></pre>
  
  <p>I'm trying to Eval a date from wordpress feed inside a asp:ListView. What i want is to 'return' <em>b</em> to the ItemTemplate, but i keep getting this error:</p>
  
  <p><strong>{"The methods of data association such as Eval (), XPath () and Bind () can only be used in the context of a control data binding."}</strong></p>