asp.net mvc

  1. C

    Error 404 when pressing button

    This is my first ASP.NET Core project. I started with adding a button that will check if it is clicked. It will print a YES when it's clicked. but when I hit the button, I got into this Error 404 page. What did I do wrongly? @{ ViewData["Title"] = "Index"; } <form class="text-center">...
  2. sachin Shrestha

    testing web API endpoint locally?

    I am Developing a web API in .net MVC how to access that API endpoint in my devices which are connected to my local network for testing on my phone? keyoti not working properly
  3. sachin Shrestha

    Resolved Is it ok To Transfer route values from controller to views with viewdata and view bag rather than ViewModel

    Which is Good To Use By View bag or By ViewModel [HttpGet] public ActionResult Edit(string searchedSiblingStudentName=null) { Viewbag.SearchedStudentName= searchedSiblingStudentName; return View() } [/CODE] [HttpGet] public ActionResult Edit(string...
  4. Gcobani54

    Joining three entities using linq

    Hi Team I need some help in joining three entities using linq, i have one join but the problem i have i am getting a repetion of years, weekNum and day colums with data being incorrect. public IList<ExtractionViewModel> GetExtractionViewModels(string year, int week) {...
  5. M

    Question Same query fired multiple times EF

    I'm building a very simple CRUD web-application (ASP.NET MVC) for tennisplayers and the tournaments they can participate. On a specific page I want to show all tournaments in the database with a title at the top op the page 'All Tournaments' with between brackets the amount of records in the...
  6. etkmlm

    Resolved Entity Framwork Not Working

    i have a problem with Entity. Want to use Entity in DbContext class but it is not working even though I added it to the packages. So when i write the "System.Data.Entity", it turns red. (Error: CS0234) Maybe Visual Studio doesn't see the Entity package. Visual Studio 2019 .NET Core 2.0...
  7. LasG

    Question hidden one of the attribute

    Hi there, could you tell me how to hidden one of the attribute in cshtml, so it doesn't show up on inspect element ex : before : <span id="1" data-customeID="2">text</span> after : <span id="1">text</span> Thank you
  8. J

    Trying to understand logic for boolean

    At the moment, my program is able to upload files and display alert messages to users when it is uploaded. The thing is now, after uploading, it is supposed to see if it is a duplicate file or not. If it is, then a message alert will inform the user that it is a duplicate while if it is new ...
  9. V

    Question Not reload the page in Ng-Click

    <a class="button" ng-click="L(Post)" ng-if="Post.uid =='true'" href="/About/Aboutpage" style="text-decoration:none;" ng-init="LDetails(Post)"> <input type="image" alt="" src="~/Images/like.png" style="max-height:20px; max-width:20px;" />&nbsp;Like<span class="badge">{{Post.L}}</span> </a> <a...
Back
Top Bottom