Questions tagged as 'asp.net-mvc'

1
answer

Rule Rewrite Changing scripts directories

I have the following problem, while using the rule below my default directory is changed and my js and css files stop working. <rule name="Produtos Detalhe"> <match url="^(produto)\/(.*)\/(.*)\/?$" /> <action type="Rew...
asked by 05.12.2017 / 18:44
2
answers

Api that receives an Array of items

I have the following situation, I need to create an API that will receive the content below: { "numeroCarrinho": 122865, "itens": { "PA00058": 1, "MA00068": 1, "PA00004": 1 }, "cep": "41706670", "retiraNoLocal": false }...
asked by 06.12.2017 / 20:01
0
answers

Client question for a webapi

I have a slight doubt ... it concludes a webapi in asp.net core, is already all tested and everything, however, I have raised a doubt ... It includes a new project next to this api, in order to be the client that will consume such api and wanted...
asked by 15.11.2017 / 02:01
0
answers

ActionResult search result does not return all results for View PagedList

I noticed that in my application before View the Paged List it received all returned items from the ActionResult from the implementation of the Paged List I do not get all the results of my controller . In summary ActionResult gets a...
asked by 12.11.2017 / 18:32
0
answers

Using multiple html pages with the same controller AngularJS + ASP.NET MVC

Using the routes with AngularJS, When you enter the Autor.html page with the /Autor route, all registered authors are listed in a table where a link is created for each author's edition, according to this line of code <a ng-click="s...
asked by 23.11.2017 / 14:16
1
answer

MVC bundle changing css content - Awesome Font

I have a problem with the bundle of ASP.NET MVC. When I squeeze the local application, the FontAwesome icons render perfectly. Even when I enable the bundle location. However, when I publish the application to the server, the bundle chang...
asked by 05.12.2017 / 13:39
0
answers

How to configure client validation in an ASP.NET MVC 2.0 application to recognize standard pt-BR

I am having difficulty configuring client-side validation of my application. I would like client validation, using jquery.validate.unobstrusive , to accept numbers and dates located in pt-BR. I've already done this in the startup...
asked by 08.12.2017 / 17:27
1
answer

How to import records file in asp.net mvc with entity framework [closed]

I would like to ask a question and I do not know how to structure my need .. I need to import / export a file with records, and depending on each record will be from a different table with their references and etc. What file formats is right?...
asked by 17.11.2017 / 19:07
2
answers

What are routes in ASP.NET MVC?

In ASP.NET MVC I always get the term route when #, however, I started to study APS.NET MVC a short time ago and this term route / strong> this is causing me confusion. Question I would like to know what are routes and what is their p...
asked by 29.10.2016 / 02:41
2
answers

Save Image to Database with C #

Hello I've seen the example Upload image for picturebox and write to the database but I did not understand that part: FileStream Stream = new FileStream(imgLocation, FileMode.Open, FileAccess.Read); What would this imgLocation be? I...
asked by 28.11.2017 / 17:58