title: if operator in vb.net giving error
body: <p>I have a line <code>notes = If(IsDBNull(notes),"","")</code> in my code . When I try running it on localhost, </p>
  
  <p>I am getting the error on Line 51:</p>
  
  <blockquote>
    <p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p>
  </blockquote>
  
  <pre><code>Compiler Error Message: BC30201: Expression expected.
  
  Source Error:
  
  
  
  Line 49:       End Try  
  Line 50:       
  **Line 51:     notes = If(IsDBNull(notes),"","")** 
  Line 52:       'Context.Response.Output.Write("AAAA"+notes+"MMM")
  Line 53:        if notes.Trim().Equals("TIMEUP") then  
  
  
  Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5459 
  </code></pre>
  
  <p>However, when the same code is ported to production it is running without any glitch, any idea why ?</p>