Questions tagged as 'asp.net-mvc'

1
answer

Choose folder with mvc c # [closed]

How do I get the user to choose the folder in which to save a spreadsheet? The call will be from a razor view of mvc.     
asked by 17.09.2018 / 23:45
2
answers

How to display a modal (bootstrap) stating that the input type="file" can not be null?

I have an input: <input id="imagens" type="file" multiple name="file" accept="image/x-png, image/gif, image/jpeg" required /> And the following javascript code: var fileUpload = document.getElementById("imagens"); var envia...
asked by 18.10.2017 / 14:29
1
answer

ASP.NET MVC ActionLink outside the area

I'm having a hard time making a simple functionality. I have an area called "project":    Thegoalissimple:IneedtocreateanHtml.ActionLinkthatgeneratesalinktoreturnthehomepagethatisOUTSIDEoftheprojectarea,suchasthesiteroot.Itriedtocallitliketh...
asked by 13.10.2017 / 16:38
2
answers

How to get a javascript value inside a c # ASP.NET block [closed]

What I would like to do is to convert a value from within a JSON to Double and apply String.Format("{0:N}", valor_JSON)); so I would be converting 1000 -> 1.000 . But since it has already been answered you do not have t...
asked by 23.10.2017 / 20:52
1
answer

Return Image Controller and Render in an HTML Tag Using Javascript / Jquery

I need to render an image returned from a controller to display it to users. I believe that this code is very close to the final result, but I can not reach this final result, a standard image is always rendered as if it could not be displaye...
asked by 07.04.2017 / 21:32
1
answer

Passing data to another page

I need your help, I have two forms, Form 1 Form 2 no Formulario 1 I have a date field, filling this date field I want it to copy to Formulario 2 without typing, can it do this using JAVASCRIPT ? I can pull data from...
asked by 28.03.2017 / 15:32
2
answers

Only allow 5 attempts on the EntityFrameWork key duplication? to 6 on SaveChange ()

In key duplication when burning with EntityFrameWork in competition with many users, it only allows 5 attempts and in 6 SaveChange () tag (example 1). If it is with SqlConnection it does not give a problem (example 2). Example 1: Public...
asked by 17.02.2017 / 13:07
2
answers

Using Dynamic Maps with the Google Maps API

I see the examples of how to use the Google Maps API and generally in the examples I see, there is always a default (initial) coordinate. Now, let's say that I make a program and distribute this application to several clients in Brazil, for e...
asked by 16.02.2016 / 19:43
1
answer

Doubt with location path asp.net mvc

I have an application in the root folder of the server running normally, in web.config I have just after the configuration tag: <configuration> <location path="." inheritInChildApplications="false"> </location> After cre...
asked by 07.03.2016 / 13:42
1
answer

WebMatrix - CS0103: The name 'ViewBag' does not exist in the current context

Good afternoon! I'm implementing an application in the Web Matrix. My page is in .cshtml (c # with html). I want to use the ViewBag class, but I can not find it in @using System.Web.Mvc; or elsewhere. I searched the internet but I did...
asked by 03.09.2016 / 21:12