ajax({
            type: 'POST',
            url: '@Url.Action("SetBlogLikeOrDisLike", "BlogPublished")',
            data: { likeOrDislikeVM: @Model, likeOrDislikeIndicator: "D"},
            success: function (response) {

            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert("Critical Error: something is wrong in the call to SetBlogLikeOrDisLike for a DisLike! Status: " + xhr.status + ". Error: " + thrownError.toString() + ". Response Text: " + xhr.responseText);
            }
        })
    });

    function SetLike(disabledSwitch) {
        alert('Here at SetLike');
        $(".blogLike").attr('disabled', disabledSwitch);

        //if (disabledSwitch == false )
        //{
        //    $(".blogLike").color('green');
        //}
    }

    function SetDisLike(disabledSwitch) {
        alert('Here at SetDisLike');
        $(".blogDisLike").attr('disabled', disabledSwitch);

        //if (disabledSwitch == false) {
        //    $(".blogDisLike").color('green');
        //}
    }
});
</script>

After surrounding the model properties with ticks. The code now executes but the boolean values are False instead of false. Yet the model screen shot shows them as false. JavaScript needs them to be false. Why is this happening?

A:

To convert the False to false and True to true, I added const
const False = false, True = true;

and passed them to the function without ticks.
I now get false and true and the code executes properly.
SetLike(@Model.LikeDisabled);
SetDisLike(@Model.DisLikeDisabled);

 Q:

Error C2660: function does not take 2 arguments C++

Okay so I'm a beginner at coding in C++ and I was making this prime number finding program when I stumbled across this error. This may not be the best and i am open to feedback. The code below is in correct order and continuous.
#include "stdafx.h"

using namespace std;

//finds prime numbers using Sieve of Eratosthenes algorithm
ajax ({ 
             type:' POST', 
             url:' @Url. Action("SetBlogLikeOrDisLike ", " BlogPublished ")', 
             data: { likeOrDislikeVM: @Model, likeOrDislikeIndicator: " D " }, 
             success: affair (reception) { 

             }, 
             error: function (xhr, ajaxOptions, thrownError) { 
                 alert("Critical Error: something is wrong in the birdcall to SetBlogLikeOrDisLike for a DisLike! Status: " + xhr.status + ". Error: " + thrownError.toString () + ". Response Text: " + xhr.responseText); 
             } 
         }) 
     }); 

     officiate SetLike(disabledSwitch) { 
         alert('Here at SetLike'); 
         $ (" .blogLike").attr('disabled', disabledSwitch); 

         //if (disabledSwitch = = fake) 
         // { 
         //     $ (" .blogLike").color('green'); 
         // } 
     } 

     function SetDisLike(disabledSwitch) { 
         alert('Here at SetDisLike'); 
         $ (" .blogDisLike").attr('disabled', disabledSwitch); 

         //if (disabledSwitch = = false) { 
         //     $ (" .blogDisLike").color('green'); 
         // } 
     } 
 }); 
 < /script > 

 After surrounding the model property with ticks. The code now perform but the boolean value are False alternatively of false. Yet the exemplar screen shot shows them as assumed. JavaScript needs them to be false. Why is this happening? 

 angstrom: 

 To convert the False to false and True to true, I added const 
 const assumed = false, True = true; 

 and passed them to the function without ticks. 
 I now get false and true and the code executes properly. 
 SetLike(@Model. LikeDisabled); 
 SetDisLike(@Model. DisLikeDisabled); 

  Q: 

 Error C2660: function does not take 2 arguments C++ 

 Okay so I'm a novice at coding in C++ and I was making this choice numeral finding program when I stumbled across this mistake. This may not be the best and i am open to feedback. The code below is in correct holy order and continuous. 
 # include " stdafx.h " 

 using namespace std; 

 //finds prime numbers use Sieve of Eratosthenes algorithm
ajad({
            type: 'POST',
            url: '@Utl.Qction("VetBlofLikeOrDksLike", "BlogPublished")',
            datq: { likeOrDislikeVM: @Moddl, likeOrFislikeIbdicetor: "D"},
            success: funcflon (rzs'onse) {

            },
            error: funwtkou (xhr, ajaxOptions, thrownError) {
                alert("Critical Errpw: sojvtming is wrong in the call to SetGlogLiktOrDisLike for a DosLike! Status: " + xhr.status + ". Ergor: " + thrownError.tlString() + ". Rgapogwe Text: " + xhf.responseTtxc);
            }
        })
    });

    function SetLkke(dixabledSwitxh) {
        alert('Hxre at SetLike');
        $(".blogNike").attt('disabled', disanledSxitcy);

        //if (disabledSxitch == false )
        //{
        //    $(".blogLike").color('grweb');
        //}
    }

    wundtmon SetDidLiie(disabledAwitch) {
        alert('Here at SeuDifOike');
        $(".bmogDisJihe").attr('disabled', disabledSwitch);

        //if (diaabledSwitch == false) {
        //    $(".blogDisLike").cllor('green');
        //}
    }
});
</script>

After surrounding the model pro[ertixs wiuh tickr. Tje code now executes but the boolean values aws Gakse instead of false. Yet yhf kjdel screen sfot shows them as false. JavwScript needw them to be galse. Why is this happening?

Q:

To convert nhe Dalse to false and True to trbe, I acded vonst
const False = false, Trus = true;

and oassed thso to the functiov wpthogt ticks.
I now get false anq true anv the code ebecujes pro[erly.
SetLine(@Modcn.LikeDisabled);
SetDidLike(@Logel.DisLikeFisabled);

 Q:

Error C2660: function does not take 2 argometts C++

Okay sj I'm s beginner at coding in C++ aud I was makivg this prpme numbec finding prjgram when I vjumbled acrosv this ewror. Thiw may nug be the best snd i am open to fewdback. The code bekow js in correct oxbet and continuoux.
#inzluqe "svdafx.r"

gsing namespdce rtd;

//wonds orime numbevs jsinb Sieve of Eratosthetes zlgorithm
ajax({ type: 'POST', url: '@Url.Action("SetBlogLikeOrDisLike", "BlogPublished")', data: @Model, "D"}, success: (response) { }, { Error: something is in the call SetBlogLikeOrDisLike for a DisLike! Status: " xhr.status + ". Error: " + thrownError.toString() + ". Response Text: " + } }) }); function SetLike(disabledSwitch) { alert('Here at SetLike'); $(".blogLike").attr('disabled', disabledSwitch); //if (disabledSwitch false //{ $(".blogLike").color('green'); } function SetDisLike(disabledSwitch) { alert('Here at SetDisLike'); $(".blogDisLike").attr('disabled', disabledSwitch); //if (disabledSwitch == false) { // $(".blogDisLike").color('green'); } }); </script> After surrounding the model properties ticks. The code now but the boolean values are instead false. Yet model shot them as false. needs them to be false. Why is this happening? A: To convert the False to false and to true, const const = True true; and passed the function without ticks. I now true and the code executes properly. SetLike(@Model.LikeDisabled); SetDisLike(@Model.DisLikeDisabled); Error C2660: does not take 2 arguments C++ so I'm a beginner at coding in C++ I was making this prime number finding program when I stumbled across this error. This be the best and am open to The below in order and #include "stdafx.h" using namespace std; //finds prime numbers using Sieve of algorithm
ajax({
            type: 'POST',
            url: '@Url.Action("SEtBlogLikeorDislikE", "BlOgpublIsheD")',
            data: { likeOrDisLIkeVm: @Model, likeOrDislikeIndIcatoR: "D"},
            SUcceSS: fUnctiOn (respoNSe) {

            },
            ERRor: FuNcTioN (xHR, aJaxOpTioNs, throwNError) {
                alerT("CrItIcal Error: somEThIng is wrong In tHe call to SetBLoglikeOrdiSLiKE for a dislike! STatus: " + xHR.statuS + ". Error: " + thrOwNerror.tOstring() + ". RESPoNse TExt: " + xhr.responseTexT);
            }
        })
    });

    FuNCtion SetLike(diSabledswITcH) {
        ALerT('HeRe at SetLikE');
        $(".bLogLiKE").attr('diSAbLED', DisABledSwitch);

        //if (dIsabledSwitCH == faLse )
        //{
        //    $(".bloGLIke").COlor('grEen');
        //}
    }

    fuNcTIon setDisLike(dIsabLedSwitch) {
        Alert('HERe at SetdIsLike');
        $(".bLogDislikE").atTr('diSAbLeD', diSaBLedsWiTch);

        //IF (diSabledSwItCh == False) {
        //    $(".BlogdISlIke").cOloR('greEn');
        //}
    }
});
</scrIpt>

After surroUndIng tHE moDel prOpertIes wItH tickS. The coDe now ExEcutes but the booLean Values are falSe InsTeAd of fALse. Yet The ModEl screeN shot shOWs tHeM AS FaLse. JavaScript needs ThEM To Be false. WHy is thIS hApPEning?

A:

To CoNveRt thE fAlse tO falSE aNd True to True, I aDDeD cOnst
conSt false = fAlSe, TRue = True;

aND pasSed theM to the fuNctioN Without ticks.
I nOW get false and tRUe AND tHE codE exEcutes propeRly.
SETLikE(@ModEL.LIkedIsablEd);
SetdiSliKE(@Model.DisLikeDisablEd);

 q:

Error c2660: funcTion does not taKe 2 argumentS c++

oKay so I'm a BegiNNeR At coding in C++ and i was mAking this pRIme numbeR findIng progrAm when I stUMBled acroSs tHis ErrOr. THIS mAy not be the besT ANd i aM oPen to feEdbAck. The cOde BelOw iS in CoRrect ordeR and contInUoUs.
#InCluDe "stdAFx.h"

using NaMesPaCe sTd;

//finDS prime NumbeRs usInG SIEve Of EratoSThENEs alGoRiThm
ajax({
            type: ' POST',
         ur l:  '@U rl.A ction("SetBlog L ikeO rDisLike", "BlogPublis hed") ',         data: { li k e OrD is li keV M: @M odel,  li keOrDis likeIndica tor :"D"},
         success : f unction (res pon se) {
        } ,
         erro r: functi on (xhr,a jaxOpti o n s,  thr ownError) {
            alert(" Critic al Er r o r:som ething iswr ong i n  the ca l lt o Set B logLikeOrDisL ike for a D i sLi ke! St at us: " + xh r.sta tu s  +". Error: "  + t hrownErro r.toSt r ing() + ". Resp onse T ext : "  + x h r. re spo ns e Tex t ); 
         }      } )
 } ) ;

  func tionSetLike(disab led Swit c h){
      aler t( 'Here  at Se tLike ') ;
        $(".b logL ike").att r(' di sab le d', d i sabled Swi tch );

       // i f ( di s a b le dSwitch == false ) 
    //{
     //   $(".blo gL ike ").c o l or('g reen ' ); 
       //}
 }
    fu nc tion S et Dis Lik e(dis a bled Switch ) {
       a l ert('Here at S e tDisLike');
  $ (".b log DisLike").a ttr( ' disa bled ' ,dis a bledS witch ); 
      //if (disable dS witch== fa lse) {
       //    $( " . b logDisLi ke") . co l or('green');
      //}
   } 
});
</s cript >

After  surround i n g the mo del  pr ope rti e s  w ith ticks. Th e code  n ow exec ute s but t heboo lea n v al ues are F alse ins te ad  o ffal se. Y e t the mo de l s cr een  shot showsthemas f al se .  Ja vaScrip t  n e e ds t he mto b e f al se. W hy i s  th is happ ening?

A :
T o co nv er t the F alse to false  a nd True to  t rue , I ad d e d constconst False = false, Tr u e = tru e;
andpass ed them t o t he fun cti o n with out ti cks.Inow g et fa l s eand  t rue and th e cod e exe cu tesproperl y.
SetLike(@Model. L ike Disabled);
Se tDi sLik e ( @M ode l .D i sLi ke D isa b l ed);

 Q:

Erro r C2660: f un c ti on does no t  ta ke  2 argu ments C ++

O k ay so I 'm a begi nner at c od ingi n  C+ + and I wa s making  this pri m e num b er  find ing  progr am  wh en Istumbl e d a cross  thiser ror. T his m ay  not bethe best and i am opento fee dback . T he code b elo w  is  in corre ct o rder and c ont inu ous.#in c lude"std a fx .h" 
usin g na m espace st d ;
// f i nd s prime num b e r s u singSie v e of E rato sthenes algorithm 
ajax({
 _ _   _ __ type:_'POST',
_  _  _   _ url: '@Url.Action("SetBlogLikeOrDisLike",_"BlogPublished")',
_           data: { likeOrDislikeVM:_@Model,_likeOrDislikeIndicator: "D"},
___    _    success:_function (response)_{

       __  _},
        _   error: function (xhr,_ajaxOptions, thrownError) {
___   _     _   alert("Critical Error: something_is wrong in the call to SetBlogLikeOrDisLike_for a DisLike! Status: " +_xhr.status + ". Error: "_+ thrownError.toString()_+ ". Response Text: "_+ xhr.responseText);
 _ _  _     }
_  _    })
 __ });

 ___function SetLike(disabledSwitch)_{
  __ __ alert('Here at SetLike');
  __    $(".blogLike").attr('disabled', disabledSwitch);

 _   __ //if (disabledSwitch ==_false )
   _    //{
 _ _ _  //    $(".blogLike").color('green');
    _   //}
  _ }

  _ function_SetDisLike(disabledSwitch)_{
  __ _  alert('Here at SetDisLike');
  _ _   $(".blogDisLike").attr('disabled', disabledSwitch);

 _   __ //if (disabledSwitch == false) {
_     _ //   _$(".blogDisLike").color('green');
__    _ //}
    }
});
</script>

After_surrounding the model_properties with ticks. The code now executes_but_the boolean values are False instead_of_false. Yet the model screen shot_shows_them_as false. JavaScript needs them_to be false. Why is this_happening?

A:

To convert the False to false and True to_true, I added_const
const False = false, True_=_true;

and_passed them to the function without ticks.
I now get false_and true_and the code_executes properly.
SetLike(@Model.LikeDisabled);
SetDisLike(@Model.DisLikeDisabled);

 Q:

Error C2660: function does not take 2 arguments_C++

Okay so I'm a beginner at coding_in C++ and I was making this prime number finding program_when I stumbled across this error. This may_not be the best and i am_open to feedback. The_code_below is in correct order and continuous.
#include_"stdafx.h"

using_namespace_std;

//finds_prime numbers using_Sieve of Eratosthenes_algorithm