Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland asked on

ASP.net Razor page Scripts part - is this only Javascript

Hi


In ASP.net razor pages is the bottom part of the page (@section Scripts) shown below used for Javascript? Or can you also put C# code here. I am new to C# and Javascript so am not sure which one this is


@section Scripts {
function filter() {     var from = $("#from").val(), to = $("#to").val();     if (from) from = new Date(from);     if (to) to = new Date(to);     if (from) {         if (to)             f = d => d >= from && d <= to;         else             f = d => d >= from;     }     else {         if (to)             f = d => d <= to;         else             f = _ => true;     }     $("#scroll-horizontal-datatable tbody tr").each(function (_, r) {         if (f(new Date($("[data-date]", r).data("date"))))             $(r).show();         else             $(r).hide();     }) }      }

Open in new window

ASP.NETJavaScriptC#

Avatar of undefined
Last Comment
Kelvin McDaniel

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Alfredo Luis Torres Serrano

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Kelvin McDaniel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy