Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Operator '&&' cannot be applied to operands of type 'bool' and 'method group'

Posted on 2006-11-28
3
Medium Priority
?
2,585 Views
Last Modified: 2011-04-14
Not sure what I'm doing wrong here and is there a better way to code the method?  (FYI: I used sss to hide the real names here for privacy purposes)

                if (chkSubmit.Checked && CheckRequiredSSS)
                {
                     ...do something
                 }

    protected bool CheckRequiredSSS()
    {
        if (sss.DataTier.sss.ContentItemType.Values.ssss != null)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

Error: Operator '&&' cannot be applied to operands of type 'bool' and 'method group'
0
Comment
Question by:dba123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 18031064
               if (chkSubmit.Checked == true && CheckRequiredSSS == true)
0
 
LVL 1

Author Comment

by:dba123
ID: 18031083
whoops, here's the resolution, duh

if (chkSubmit.Checked && CheckRequiredSSS())
0
 
LVL 1

Author Comment

by:dba123
ID: 18031087
or yours works also...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question