Started a new question as the problem has moved. You can read how we came to this in this post. stackoverflow.com/questions/60379943  I now have working code but for some reason the script formatting is interfering with the population of the drop-dow...
I'm unable to get sidebar links to navigate to bootstrap 4 tabs on the center page using this technique. Here is the javascript in my _SidebarLayout.cshtml:   <script>     function selectTabNamedInUrlHash() {         let selectedTab = windo...
I am building an ASP.NET Core web application and would like to style certain text in my result table a different color than the rest of the table. For example:    I am trying to do this in JavaScript but seem to be running into issues because the da...
so this is a hard one for me to try and explain. I have a razor page that when a button is clicked it calls a javascript function which makes an ajax call to a handler in the back end. The handler does some stuff and gets a id that I want to pass to...
I have following model binding in reazor view .cshtml  @Html.TextBoxFor(m => m.cDate,     new{         @id = "textd",         @type = "text"     } )   I want to call a javascript function before binding like below  @Html.TextBoxFor...
I'm iterating a list in my Razor view and I have a date attribute to show in a specific format.   I have used model.MyDatetimeAttr.toString("dd MMM yyy") which is working fine. However it has considerable performance impact (taking too mu...
I have a dropdownListFor in Razor view and I would like Jquery change function to fire when value is changed.  Razor Code of Dropdown   <li id="servicesOffer"><a data-toggle="pill" href="#services" hidden>Services...
I recently moved from WPF to Razor Pages(single page app, NOT MVC Razor Views) and I cannot access functions on an element.    in my partial view (crews.cshtml)  @page @model CrewsModel <body>     <div class="container">         &...
I have a JavaScript/jQuery function used to execute AJAX requests as part of a ASP.NET Core Razor Pages (Visual C#) project. The AJAX request calls an "OnGet" handler method in the PageModel (.cshtml.cs) of whichever page it gets called on. A...
This one's a little tricky, but here goes:  I downloaded some files from a website I'm working on shifting from Wordpress to ASP.NET Razor Pages. In the original files there are an 'assets' folder, a 'lib' folder (containing t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.