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

0
answers

Returns value for an Action

I have a form with the following input. <div class="form-group"> <label class="control-label col-md-2" for="nome">Logradouro</label> <div class="col-md-10"> @Html.EditorFor(model => model.endereco.Logradouro, new {...
asked by 22.08.2017 / 21:48
0
answers

Could not find file 'c: \ ... \ bin \ roslyn \ csc.exe'

Here's a picture: I'vebeenupdatingMicrosoft.CodeDom.Providers.DotNetCompilerPlatformwiththelatestandstableversion.SoIupgraded1.0.5to1.0.6. He was not like that anymore. Now you're giving yourself this problem.     
asked by 13.08.2017 / 01:54
1
answer

Error saving record without choosing category in dropdownlist

I'm having a problem clicking on save with some data filled up, giving me error how could I solve it. ClickingsavefromthiserrorThisisthecontrollertocreate        publicActionResultCreate(Empresaempresa){if(ModelState.IsValid){db.Empresas.Ad...
asked by 09.09.2017 / 02:03
0
answers

Session TimeOut MVC 5

I'm trying to implement the Session Timeout in an MVC5 application. I have the following string in Web.config: <sessionState mode="InProc" cookieless="true" timeout="15" /> I created the class: public class SessionExpireAttribute...
asked by 04.08.2017 / 07:00
1
answer

How to do JSON data request

I need to collect some data from a program that has API: PipeDrive API Reference If I understand correctly, for each task, a URL will be generated to make Requeste data, for example: https://api.pipedrive.com/v1/deals?stage_id=4...
asked by 11.08.2017 / 18:04
0
answers

How to pass a parameter to the controller containing / (bar)

I need to pass a parameter to a Controller , however, this parameter contains / (slash). Example: 5701 / 1_1 5966 / 2_5 7881 / 6_1 To pass the parameter I am using @Url.Action : @Html.ActionLink("Visualizar", "Detail...
asked by 19.07.2017 / 12:34
0
answers

Creating DropDownListFor with typed view

Good afternoon guys, I'm starting my studies in the art of ASP.NET C #. I'm having trouble creating a DropDownListFor. How I'm doing:  - I'm using ADO.NET  - I have my model Equipment  - I have a Viewmodel EquipmentCompany, just to list...
asked by 11.07.2017 / 21:49
1
answer

How to retrieve parameter from a Controller

After the user logs in, two parameters are passed to Controller Home : case SignInStatus.Success: { //recupera as informações do usuario que corresponda ao usuario e password var user = await UserManager.FindAsync(model.Usuário, mo...
asked by 11.07.2017 / 22:13
0
answers

Save the path of an image in the database using ASP.NET MVC 5

I want to select an image and save the image path in the database, because in the sql database the "Image" column is with type varchar . Could you help me with some examples? Thanks in advance. View to Insert: @Html.AntiForgeryToken()...
asked by 29.06.2017 / 17:02
0
answers

Id not accepting value asp mvc 5

Personally I'm trying to do a login logic but in a way without using the other asp mvc 5 technologies [HttpPost] [ValidateAntiForgeryToken] public ActionResult Cadastro(Fornecedor fornecedo, int? id ) { var acesso = db.Fornecedor.Any(...
asked by 05.06.2017 / 18:22