razor - How to call a jQuery function which in same project but different folder in ASP.Net MVC 5? -
i trying call function linkwallet() function named customernew()
linkwallet() in file named walletdetails.cshtml while customernew() in file named create.cshtml
the problem while both these files in same project, in different folders under mvc's views section.
create.cshtml in views/customer/create.cshtml
walletdetails.cshtml in views/customerwallet/walletdetails.cshtml
how can call stated function 1 class anther? don't rewrite , googling didn't help.
we not call views, actions! calling action different controller need call proper url it. example if want call action walletdetails controller customerwallet , url in jquery load function or ajax function should /customerwallet/walletdetails/{id}.
Comments
Post a Comment