c# - asp - Cannot find method 'IsNullOrEmpty(String)' in 'String' -


A string is not empty, so I'm just trying to print, and I am using the code below , But it is coming along with error ...

   & Lt; Strong> Details: & lt; / Strong> & Lt; BR & gt; & Lt; HR size = "1" & gt; & Lt; Strong & gt; & Lt;% = o_handler.renderDesc ()%> & Lt; / Strong & gt; & Lt; HR size = "1" & gt; & Lt; BR & gt; & Lt;%} Other {%> & Lt;%}% & gt;  

Also tried:

  & lt;% if (o_handler.renderDesc ()! = Null) {%> & Lt; Strong> Details: & lt; / Strong> & Lt; BR & gt; & Lt; HR size = "1" & gt; & Lt; Strong & gt; & Lt;% = o_handler.renderDesc ()%> & Lt; / Strong & gt; & Lt; HR size = "1" & gt; & Lt; BR & gt; & Lt;%} Other {%> & Lt;%}% & gt;  

Here's the error:

Compiler Error Message: VJS1223: Can not find 'IsNullOrEmpty (string)' method in 'string'

It looks like your page language is set to JScript, try setting it to C #.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -