Questions tagged as 'asp.net-mvc'

1
answer

How to publish an MVC 5 site?

I made a hosting subscription to Godaddy and I am doubtful to publish the project. Currently in the root directory of the site contains only one HTML page: index.html, as we can see below. index.html : DoubtbeginswhenIstartpostingthesite...
asked by 25.10.2015 / 17:20
1
answer

Tips for improving the performance of an ASP.NET MVC site [closed]

I participated in DevDay 2015 and had the opportunity to take part in the Roberta Arcoverde lecture on the StackOverflow architecture. I found her approach to performance questioning interesting, including how well she stressed that they use c...
asked by 05.11.2015 / 12:03
1
answer

Parameter for unidentified Stored Procedure

I'm having a problem, which would be a mistake saying that there is no parameter being passed to the procedure . It is running the following code: cmdProcedure.Parameters.AddWithValue("@id", 0); Command: public List<Models.Admin>...
asked by 18.02.2014 / 18:10
1
answer

Create Roles to Hide / Show Menu

I'm developing my first application in Asp.NET MVC and now creating the restriction and authorization part of users. I would like to do this so that the menus in my application would only be accessible to certain users. For example: @i...
asked by 07.07.2014 / 17:27
1
answer

Changing a Dropdownlist through a search

I am creating a registration screen where in a text field I provide a search and the search result will have to appear in a dropdownlist. Theprojectisasp.netmvc4c#andthecodeintheviewis:<scripttype="text/javascript"> $(function () {...
asked by 11.07.2014 / 13:52
1
answer

Send "@ Html.BeginForm" to controller from another area. Asp.Net

I have a controller in a Area named " LoginProfessional ", with actions Index, Logon, Logoff . I make a RenderPage by calling Index in the Area root of the project, however when I click the button it...
asked by 15.05.2014 / 19:11
1
answer

Change banner to each page refresh

I have a list with 3 Banners . I always have to show a different one every Refresh from Page , even after closing the browser. I'm thinking of doing a counter of impressions every time a Banner is shown adds + 1 to the counter and I...
asked by 20.05.2014 / 00:38
1
answer

Pick up only the user name in AD

With this code, I bring everything, Domain / User. ViewBag.User = System.Security.Principal.WindowsIdentity.GetCurrent().Name; I would like to bring only the username. I can get all that, and get everything that comes after the "/" bar and...
asked by 24.09.2014 / 16:26
2
answers

References daughters and service pattern

A heavily used pattern in DDD , is service pattern . My question is, where is the logic for references to "daughters"? For example, a use case, Pedido that has Produtos public class Pedido { public int Id {ge...
asked by 09.10.2015 / 01:07
1
answer

Access webcam to take photo

How can I access the webcam to take some photos and upload directly to my server? Is there any API that will help me?     
asked by 26.06.2015 / 21:42