Questions tagged as 'asp.net-mvc-5'

0
answers

PK and FK Conflict in SQL Server Database

I am facing a Primary Key and Foreign Key conflict problem in SQL Server 2017 Express. I am using ASP.NET with Entity Framework Code First (Migrations). The problem is that when I add a new Client that is a Person does not add. The Entity Framew...
asked by 29.10.2018 / 00:36
2
answers

How to Insert a Parameter from My System on an External URL

So, we have a site that when passing the code of a user, it shows the location of the same. URL example: http://npaa1215.example.com/gisb_prod/integration/coordUser.aspx?codUser=30071665&zoom=15 In the URL we can pass the parameter...
asked by 18.10.2018 / 16:16
1
answer

How to update the Index of a field using JavaScript in Asp.net MVC

I am creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I'm facing problems since all fields are reordered in the Indexes, except those using the "asp-validation-for" razor ... Would...
asked by 17.10.2018 / 19:55
1
answer

How to call a javascript function that is in a separate (.js) file from cshtml?

Hello, I have a page where the data of a DropDownList is a result of selecting a DropDownList before it, I created a function with javascript and ajax to perform the filter, everything works when javascript is w...
asked by 15.10.2018 / 18:30
0
answers

Upload Image and save to Asp.net server

Could friends help me create a function to save the path + image name in the database, and save the image to my server? I am using the model.PhotoName field which is a string to store the path, but I do not know how to upload it...
asked by 10.10.2018 / 22:26
0
answers

Asp.net problem

Hello everyone, I'm starting my study in ASP.NET but I'm having trouble compiling the code through IIS, error appears    Application Server Error '/'.       The resource can not be found.   Description: HTTP 404. The resource you are looking...
asked by 19.10.2018 / 21:02
0
answers

ASP NET MVC 5 - No return view of the post is not updating fields

When I do the form post this calls an API that returns the fields "Change Value" and "Calculated Value", the values are loaded in the model object, but the field on the screen is not being updated.     
asked by 13.10.2018 / 23:50
1
answer

Validate Datepicker that contains only date

I use Asp.Net Core MVC (Razor + Jquery Validate + Unobtrusive). I display in a Datepicker only the date part of a DateTime field through the following code in my ViewModel: [Required(ErrorMessage = "* preenchimento obrigatório")] [DataType(Dat...
asked by 07.10.2018 / 03:39
0
answers

Error in numeric field MVC Asp.Net

I am having problems with Asp.NET MVC when using numeric field I am having error. Razor is like this @Html.EditorFor(model => model.AliqIpi, new { htmlAttributes = new { @class = "form-control", @style = "text-align: right;", @t...
asked by 09.10.2018 / 00:06
1
answer

How to get data from the Client Side to the Server

Hello. Developed an application in .NET CORE and the access page will pick up the geolocation of the client with the coordinates of Longitude and Latitude. However, I made this code using javascript, and the same will run on the client side, I...
asked by 30.09.2018 / 01:30