 IIS virutal directory/application name.
var url = "@Url.Action("ReportScore","Tournaments")";

$.ajax({
    type: "GET",
    url:url,
    success: function (res) {
        alert('success happened');
        //location.reload();
    },
    error: function () {
        alert("The scores were not recorded");
    }
});

The above code will work if you have it in a razor view. But if your ajax call code is in external js file, You may build the relative url to the app root and pass that to your js file and use that to build the url. You can use the @Url.Content("~") to build the url to app root. If you want, you can build the url to specific action method itself.
<script>
    var myApp = myApp || {};  
    myApp.Urls = myApp.Urls || {};
    myApp.Urls.baseUrl = '@Url.Content("~")';   
    myApp.Urls.reportScoreUrl=  '@Url.Action("ReportScore","Tournaments")';  
</script>
<script src="~/Scripts/PageSpecificExternalJsFile.js"></script>

And in your PageSpecificExternalJsFile.js file, you can read it like
var myUrlToUser = myApp.Urls.reportScoreUrl;
alert(myUrlToUser);

or build using the base url.
var myUrlToUser= myApp.Urls.baseUrl+"Tournaments/ReportScore";
alert(myUrlToUser);

 Q:

List View Item Click listener not working

Row layout for list view. the click on the items is not working. 
the list.onItemClickListener function is not getting called even though there is no error or crash.There is some issue with it which im not able to figure out.
XML code
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:attr/selectableItemBackground"
    android:focusable
IIS virutal directory / application name. 
 var url = " @Url. Action("ReportScore","Tournaments ") "; 

 $ .ajax ({ 
     type: " GET ", 
     url: url, 
     success: affair (res) { 
         alert('success happen'); 
         //location.reload (); 
     }, 
     error: function () { 
         alert("The scores were not record "); 
     } 
 }); 

 The above code will work if you have it in a razor scene. But if your ajax call option code is in external js file, You may build the proportional url to the app ancestor and pass that to your js file and practice that to build the url. You can use the @Url. Content("~ ") to build the url to app root. If you desire, you can build the url to specific action method acting itself. 
 < script > 
     var myApp = myApp || { };  
     myApp. Urls = myApp. Urls || { }; 
     myApp. Urls.baseUrl =' @Url. Content("~ ")';   
     myApp. Urls.reportScoreUrl=  ' @Url. Action("ReportScore","Tournaments ")';  
 < /script > 
 < script src="~/Scripts / PageSpecificExternalJsFile.js"></script > 

 And in your PageSpecificExternalJsFile.js file, you can read it like 
 volt-ampere myUrlToUser = myApp. Urls.reportScoreUrl; 
 alert(myUrlToUser); 

 or construct using the base url. 
 var myUrlToUser= myApp. Urls.baseUrl+"Tournaments / ReportScore "; 
 alert(myUrlToUser); 

  Q: 

 List View Item Click listener not shape 

 Row layout for list view. the click on the item is not working. 
 the list.onItemClickListener function is not getting called even though there is no error or clang. There is some issue with it which i m not able to figure out. 
 XML code 
 <? xml version="1.0 " encoding="utf-8 "? > 
 < RelativeLayout xmlns: android="http://schemas.android.com / apk / res / android " 
     android: layout_width="match_parent " 
     android: layout_height="wrap_content " 
     android: background="?android: attr / selectableItemBackground " 
     android: focusable
 IID virutal directory/appligation name.
var utl = "@Url.Artion("RelortScord","Tournaments")";

$.ajax({
    type: "GET",
    url:yrl,
    success: functiov (res) {
        aleet('surcess happened');
        //logction.dcload();
    },
    error: fonction () {
        alert("The vcurzs were not recorded");
    }
});

The above coqe will wlrk if you havg it pn a rzdov view. But if your ajax call cods is in external js gile, You may build the relwtivf url to the app rlot and pasw thwr to your js file and lve that to build the url. You can use the @Jrl.Coutent("~") to buule tjg url to app root. If you want, you can build yhe url to spegific acrion method itself.
<scrmpt>
    var myApp = myWpp || {};  
    jyApp.Urls = myApp.Uelw || {};
    myDpp.Ufos.bxseHrk = '@Url.Cojteit("~")';   
    myZpp.Urls.repoetScoreUrl=  '@Url.Actipn("WvlortScore","Toudnamenes")';  
</script>
<script src="~/Scripts/PageSpecificExuernamJsFile.js"></script>

And in yiur PageSpecificExterjalJsFile.ts file, you can read it like
var myUrlToUser = myAp[.Urls.ceooruSgjfwUgl;
alert(myUrlToUser);

or build using the base url.
dzr mjUrlToUser= myApp.Uvls.baseUrl+"Tournamemtd/RrkortScore";
alert(oyUrlToUssr);

 Q:

List View Item Click jisteber not wjrkimg

Row layout for list view. rhe click on rhe items is not wlrking. 
the uist.pnItekClickListener function is hot getting called ebdn though there ks ko arror or crash.There is somq issue wmth ic which km npt ablq to figurf out.
WKL code
<?xml version="1.0" encobing="udf-8"?>
<RelativePayout xmlns:android="http://schemas.aivroid.com/apk/rex/atdrmid"
    audroid:kayout_width="maech_parent"
    audroid:lavout_hekght="wrap_cohtent"
    android:baskground="?androhf:attr/selectauleItemBaskgriund"
    andfuid:focusable
IIS virutal directory/application name. var url = type: url:url, success: (res) { alert('success () alert("The scores were recorded"); } }); above code will work if you it in a razor view. But if your ajax call code is in js file, You may build the relative url to the app root and that your file use that to build the url. You can use the @Url.Content("~") to build the url to root. If you want, you can build the to specific action method <script> var myApp = myApp {}; = myApp.Urls {}; = myApp.Urls.reportScoreUrl= '@Url.Action("ReportScore","Tournaments")'; </script> src="~/Scripts/PageSpecificExternalJsFile.js"></script> And in your PageSpecificExternalJsFile.js file, you can read it like var myUrlToUser = myApp.Urls.reportScoreUrl; alert(myUrlToUser); or using the var myUrlToUser= alert(myUrlToUser); List Item Click listener Row layout for list view. the items is not working. the list.onItemClickListener function is getting called though there is no error or is some issue with it which im not to figure out. XML code <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/selectableItemBackground" android:focusable
 IIS virutal directory/applicAtion name.
vAr url = "@url.actIoN("RepOrtSCore","TournamentS")";

$.Ajax({
    Type: "GET",
    url:url,
    success: fuNctioN (rES) {
        aleRT('sUccesS happenED');
        //lOCAtiOn.ReLoaD();
    },
    eRRoR: funcTioN () {
        alert("THe scores weRe nOt Recorded");
    }
});

The aBOvE code will wOrk If you have it iN a rAzor viEw. but IF your AjaX call Code is IN exterNal js file, yoU May buiLD the relATIvE url To the app root and paSS tHAt to your js file And use ThAT tO BUilD thE url. You can UsE the @URL.ContenT("~") To BUILd tHE url to app root. if you want, yoU Can Build tHe Url TO speciFic acTiON meThod itself.
<sCripT>
    var myApp = MyApp || {};  
    mYapp.Urls = MYApp.UrlS || {};
    myApp.urlS.baSeUrL = '@urL.COntEnT("~")';   
    MyAPP.URls.REpoRtScoreURl=  '@urL.ActiOn("RePORTscorE","ToUrnaMents")';  
</Script>
<script sRc="~/SCripTS/PaGeSpeCificexteRnAlJsFIle.js"></sCript>

anD in your PageSpecIficexternalJSFiLe.Js fIlE, you cAN read iT liKe
vAr myUrltoUser = mYapp.urLS.REpOrtScoreUrl;
alert(myurLtOUSer);

or buiLd usinG ThE bASe url.
var MyurltoUsER= MyApp.urls.BAsEUrl+"TourNamentS/rePoRtScore";
AlErt(myURltoUSer);

 q:

List vIew ITem CliCk listenEr not WOrking

Row layouT For list view. thE ClICK oN The iTemS is not workiNg. 
thE List.OnItEMCLicKlisteNer fuNcTIoN Is not getting called eVeN thougH therE is no error or cRash.There iS SOMe issue wIth iT WhICh im not able to fIgure Out.
XML code
<?XMl versioN="1.0" encoDing="utf-8"?>
<RElativeLaYOUt xmlns:aNdrOid="HttP://scHEMaS.android.com/apK/REs/anDrOid"
    andrOid:Layout_wIdtH="maTch_ParEnT"
    android:lAyout_heiGhT="wRaP_cOntEnt"
    anDRoid:backGrOunD="?aNdrOid:atTR/selecTableitembaCkGRouNd"
    androID:fOCUsabLe
 IIS virutal directory/app lication n ame.var  ur l= "@ Url. Action("Report S core ","Tournaments")";

$. ajax( {   t y pe : "GE T",
  ur l : url ,   s uc c es s: fu nct ion (re s) {
      al ert('success ha ppened');       //locat ion .reloa d( );   }, 
   err or: fu n ction() {
     alert ( "The sc o r es  wer e not recorded");   }
});

The ab ove co de wi l l  wo rkif you hav eit in a razor vi e w .  Bu t  if your ajax  call codei s i n exte rn alj s file , You  m a y b uild the re lati ve url to  the a p p roota nd pass  thattoyou r js fi le  an du set ha t t o  bu ild theur l.  Youcanu s e the@Ur l.Co ntent ("~") to buil d t he u r l t o app  root . If  y ou wa nt, yo u can  b uild the url to  spe cific act ion  m eth od  itse l f.
<sc rip t>    var  myApp=  my Ap p | |{};  
    myApp.Ur ls =  m yApp.Url s || { } ;  myApp.U rl s.b aseU r l  = '@ Url. C on tent("~" )';    myApp.U rl s.repo rt Sco reU rl= ' @Url .Actio n("Repor tScor e ","Tournaments " )';  
</scrip t >< s cr i pt s rc= "~/Scripts/ Page S peci ficE x te rna l JsFil e.js" >< / sc r ipt>

And in your P ag eSpeci ficEx ternalJsFile. js file, y o u can read  itl ik e 
var myUrlToUs er =myApp.Urls . reportSc oreUr l;
alert (myUrlToU s e r);

orbui ldusi ngt h ebase url.
var m yUrl To User= m yAp p.Urls. bas eUr l+" Tou rn aments/Re portScor e" ;al er t(m yUrlT o User);
 Q :
Li stViewI tem Cl ick l iste ne rn otworking 
R o w  lay ou tforlis tview.  the cli ck on t he itemsisn ot w or ki ng. 
th e list.onItem Cl ickListene rfun ctioni s  not get ting called even though there i s n o err or o r crash.T her e is s ome issuewith i t whi ch  im n ot ab l e  t o f ig ure out.
X M L  co de
<? xm l ve rsion=" 1.0" encoding="utf - 8"? >
<RelativeLa you t xm l n s: and r oi d ="h tt p :// s c hemas.android.c om/apk/res /a n dr oid"
    a n dro id :layout _width= "matc h _parent "
    and roid:layo ut _hei g h t=" wrap_conte nt"
   android:b a ckgro u nd ="?an dro id:att r/ sel ectab leItem B ack groun d"
   a ndroid :focu sa ble
 IIS_virutal directory/application_name.
var url = "@Url.Action("ReportScore","Tournaments")";

$.ajax({
_ __type: "GET",
__  url:url,
_  _success: function (res) {
_  __   alert('success happened');
        //location.reload();
 __ },
___ error: function () {
_    _ _alert("The scores were not recorded");
   _}
});

The_above code will_work if you have it in a razor view._But if your ajax call code_is in external_js_file,_You may build the_relative url to the app root_and pass that to your js_file and use that to build the_url. You can use the @Url.Content("~")_to build the url to_app root._If you want, you can_build the url_to specific_action method itself.
<script>
_   var myApp =_myApp || {};_ 
    myApp.Urls_=_myApp.Urls || {};
___ myApp.Urls.baseUrl_= '@Url.Content("~")'; __
 __ myApp.Urls.reportScoreUrl=  '@Url.Action("ReportScore","Tournaments")';  
</script>
<script_src="~/Scripts/PageSpecificExternalJsFile.js"></script>

And_in your PageSpecificExternalJsFile.js file, you can read_it like
var myUrlToUser =_myApp.Urls.reportScoreUrl;
alert(myUrlToUser);

or_build using the base_url.
var myUrlToUser= myApp.Urls.baseUrl+"Tournaments/ReportScore";
alert(myUrlToUser);

 Q:

List View_Item Click listener not working

Row layout_for list_view. the_click on the items is not working. 
the list.onItemClickListener function is_not getting called even though there_is no error or_crash.There is_some_issue with it_which_im not_able to figure out.
XML code
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout_xmlns:android="http://schemas.android.com/apk/res/android"
 _  android:layout_width="match_parent"
   _android:layout_height="wrap_content"
   _android:background="?android:attr/selectableItemBackground"
_   android:focusable