Questions tagged as 'asp.net-core'

1
answer

If inside the button

I have this "Receive" button, and this checkbox that when checked, means that the account is removed: IneeditwhenitclicksthebuttonReceive,andthecheckboxisalreadychecked,thatitnotifiesthattheaccounthasalreadybeenreceived,anddoesnotredirectthepag...
asked by 05.07.2018 / 15:11
1
answer

Validation of dates in the Asp Net Core model?

I have a template and wanted to validate the end date (which should be equal to or greater than the start date) public class MyModel { [Key] public int ModelId { get; set; } [Display(Name = "Início")] [DisplayFormat(DataFormat...
asked by 15.08.2017 / 17:23
1
answer

What is the purpose of the "[Bind (" ID, Title, ReleaseDate, Genre, Price ")]" in a method?

I'm creating a project in ASP.NET Core MVC for learning purposes. In a given part of the Microsoft guide when the scaffold technique is approached to generate the controller and views controller , I came across an instruction in some meth...
asked by 13.11.2017 / 01:44
1
answer

Run program in a certain folder in IIS

I would like to know how to run an exe or jar program in a given IIS folder, through the C # .net core code. It would have to be a synchronous call, that is when the C # performs the call of the jar or exe or bat has to wait the processing and t...
asked by 05.06.2017 / 19:40
1
answer

Convert value to display in table - mvc asp-net.core

I have a table that returns me a value in int and I need to convert this value to time, how can I perform this procedure, in case I would need to create a function to show me the correct value. <td> @Html.DisplayFor(modelItem =&g...
asked by 05.06.2018 / 22:27
1
answer

Return data Json

I have this function to return the data in JSON, but I can not get it to work in MVC Core. public ActionResult SalvarItens(string HoraInicio, string HoraFim, bool Seg, bool Ter, bool Qua, bool Qui, bool Sex, bool Sab, bool Dom, bool Fer, int...
asked by 28.05.2018 / 16:09
2
answers

Get folder of solution C #

I have a solution with 4 projects inside. In my controller I need to open an HTML that is inside another project, but I can not open the file folder. Below is the following with my structure: TheclassfileistheUtils.cscontrolleriswithin1-S...
asked by 28.05.2018 / 14:46
1
answer

Error when using TempData in ASP.NET 5: Session has not been configured for this application or request

I need to use TempData in a web application but it gives the following error in runtime : InvalidOperationException: Session has not been configured for this application or request. em Microsoft.AspNet.Http.Internal.DefaultHttpContext....
asked by 31.07.2016 / 17:50
1
answer

Uploading images in asp net core 1.0

I'm new to .NET, I learned in a course in asp net mvc 5 so I would need to take that upload code and transform it to asp net core if I can help. I'm grateful. [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Inclu...
asked by 04.03.2017 / 02:25
1
answer

Installing ASP.NET 5 on Linux [closed]

I read some news that it is possible to install ASP.NET 5 on Linux. Would somebody please have some legal tutorial that could assist me in this? I would install on Ubuntu.     
asked by 17.05.2016 / 18:56