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

2
answers

Error sort list?

ViewBag.ListaEspecialidades = Especialidade.ListarEspecialidades().Sort(); Give an error    "can not implicitly convert type void to dynamic".     
asked by 13.04.2017 / 16:32
2
answers

Insert checkbox dynamically by Json return does not display Text?

I am creating a list of Checkbox according to the selection of a Select on the same screen. In the event change of select is called via ajax javascript , the method that returns a Json with list (valu...
asked by 14.01.2017 / 22:09
2
answers

Write access log in ASP NET MVC application

I have an ASP NET MVC website and I need to write to the database every time someone accesses the client's IP and access date, is there any way I can do that? I do not want to record every page that the client enters, just record when to open...
asked by 29.09.2016 / 15:38
1
answer

Organization and maintenance of Bootstrap

I'm starting with the use of Bootstrap with MVC 4 and during the planning I noticed that the main screen of the system will have many divs. Many of them can be repeated (exactly the same) in other screens. To facilitate future maintenance and...
asked by 13.08.2014 / 22:12
1
answer

OnSelectionChanged MVC

Late, How can I do to call the OnSelectionChanged event of a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id = "ddlType", onchange = "onchange()"...
asked by 20.05.2015 / 20:34
1
answer

Using KEY element

In my model, I use a view that is built on certain table joins, which do not have any auto-incremental ID elements. My model requires that I assign a TAG Key , however, since I do not have any single-valued elements, I'm getting problem...
asked by 12.02.2016 / 19:21
4
answers

Databases for different clients

I am learning MVC 4 and would like to know if there is a way to with only 1 model accessing different databases? For example, I have an online system and for each client I have a separate bank. What would be the best practice to do this?     
asked by 26.05.2014 / 14:54
1
answer

Report Builder 3.0 RDL Report with MVC 4

I have a problem here, I made a C # system using Razor MVC 4 with SQL Server 2014 database, so long ... well now I need to generate reports, I made a report there in Report Builder and added it in my solution, there I created the methods: publ...
asked by 06.08.2014 / 23:03
2
answers

Capture Machine ID with C #

Good morning, I have several computers with the same IP output, how can I get any information that leads me to know which computer came a request? I use C # Asp .Net MVC     
asked by 30.09.2015 / 15:59
2
answers

Compare DayOfWeek in an ASP MVC query

I'm trying to make a query where I check if the week day is the chosen one to create a list of data that loads in a ViewModel. Query: var plan = db.Servicos.Where(s => (TecnicoResp.HasValue ? s.NumTransportado == TecnicoResp.Value...
asked by 18.02.2014 / 17:47