How can i solve the error of 'var' in ASP.Net C#?
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
        var query2 =  from cm in DC.custMasts where cm.custCity == TextBox1.Text.Trim()_ select cm.custName, custCity, custCompany;     
        GridView1.DataSource  = query2 ;
}
</code></pre>

<p>I'm getting error </p>

<blockquote>
  <p>CS0819: Implicitly-typed local variables cannot have multiple declarators</p>
</blockquote>

<p>How can i solve this error?</p>

<p>EDIT :: Thank you guys, it worked and error disappeared.</p>
