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

1
answer

Doubt in the construction of WS REST (Contract)

Gentlemen, I took an example in the book of John Sharp (Microsoft Press) to build a REST and came up with a simple question but a question of good practice. It uses the Northwind BD. It creates a Class Library project and points this project...
asked by 12.05.2014 / 14:28
1
answer

Attribute is not recognized, but Namespace is added [closed]

My [DataContract] attribute is not being recognized, but the namespace System.Runtime.Serialization is added to my using . Does anyone know why? .... using System.Runtime.Serialization; using System.Data.Linq.Mapping; names...
asked by 12.05.2014 / 21:27
1
answer

Result of foreach behaves unexpectedly

I've been working on a page, where I need to create a treeview system with checkbox and this is consuming a lot of my time and leaves me worried about the project SLA. In the controller, there I have a LINQ that returns everything I need on the...
asked by 18.09.2014 / 15:45
2
answers

How to execute method by clicking a button type [duplicate]

Hello, I'm making an application that can recover the user's password and send the password to the suport team's email. For this I have a page .aspx that has html code and I have in class recoverpassword a method that I called...
asked by 13.04.2016 / 13:41
1
answer

CSHTML with tabs is leaving a horizontal line at the bottom of the page

I have a page with 4 tabs. It's working. I happen to have a div for each tab. The end of the tab and beginning of the other looks like this: ..... </div> </form> </div> <div id=tabs-2> ..... At the end of div before...
asked by 26.06.2014 / 14:34
1
answer

Try Catch influences performance? [duplicate]

Use% of% influence on performance? in memory usage? Would it be a problem if all the actions you do have error handling? try { clienteRepository.Salvar(entity); } catch (Exception e) { emailService.EnviaErro(e); }    ...
asked by 24.10.2014 / 13:45
2
answers

Show information when there is no data

I made a if , if something comes back, then it mounts a page, otherwise it should hide everything and display a message. Not an alert, but a message on the page itself. In my else I just hide a div and a form. This is okay. Just do not kno...
asked by 02.04.2014 / 22:29
1
answer

Assign existing view to a controller

I have a view that is assigned to a controller. Everything was in this controller. Now we have decided to create a controller for our situation here. Only I would not like to create a new view, since one already exists. This view is called Hotel...
asked by 27.03.2014 / 17:07
1
answer

Return customer data [closed]

Good morning, people, I would like to create a function, which returns the requested client, and its data, which are in 3 different tables Clientes , ClientesTelephone , ClientesEmail , I can add the client perfectly with my...
asked by 20.09.2018 / 14:05
2
answers

Return a class in jQuery [closed]

I have these fields hidden in my cshtml: <input type="hidden" id="txtGeoTo" name="txtGeoTo" /> <input type="hidden" id="txtDateStart" name="txtDateStart" /> <input type="hidden" id="txtDateEnd" name="txtDateEnd" /> Propert...
asked by 25.03.2014 / 21:20