Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 597719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:18:39+00:00 2026-05-13T16:18:39+00:00

Trying to only print if a string isn’t empty, and am using the code

  • 0

Trying to only print if a string isn’t empty, and am using the code below, but it keeps coming up with that error…

<%if(!String.IsNullOrEmpty(o_handler.renderDesc())) { %>
                        <strong>Description:</strong><BR>
                        <HR SIZE="1">
                        <strong><%= o_handler.renderDesc()%></strong>
                        <HR SIZE="1">
                        <BR>
<%} else { %>

<%}%>

Also tried this:

<%if( o_handler.renderDesc() != null ) { %>
                        <strong>Description:</strong><BR>
                        <HR SIZE="1">
                        <strong><%= o_handler.renderDesc()%></strong>
                        <HR SIZE="1">
                        <BR>
                    <%} else { %>

                    <%}%>

Here’s the error:

Compiler Error Message: VJS1223: Cannot find method ‘IsNullOrEmpty(String)’ in ‘String’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:18:39+00:00Added an answer on May 13, 2026 at 4:18 pm

    Looks like your page language is set to JScript. Try setting it to C#.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to compare and print only members with Inactive status. The problem is that
I'm trying to print the output of function only when it is true but
Hello im trying to echo only the 50 letters, but something in my code
I am trying to print a string in a way that's OS-neutral. For example,
I'm trying to minify multiple CSS files using preg_replace() . Actually, I'm only trying
This may sound like a stupid question, perhaps it is. But I'm only trying
I’ve only been trying it in Firefox’s JavaScript console, but neither of the following
I am working in a bash shell and I am trying to print only
I was trying to get variable in Query String from URL. But somehow, its
I am trying to create a nested form using formtastic. I've included my code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.