Questions tagged as 'asp.net-mvc'

2
answers

Two actions in the same View

I have a View where I return the data of a user, and I need to call another view, to save data, through a modal. The problem is that there are two Views of different controllers, so when I call a PartialView I get a declaration error. The mo...
asked by 13.02.2015 / 18:12
3
answers

Picking text from a given column with jquery

Good afternoon. I need to get the value of a DropDownList in a given column of a table. This would be the table: @model IEnumerable<Santander.Web.MVC.ValidacaoGanhadores.Models.Ganhadores> <table id="tbValidacao">...
asked by 01.02.2016 / 18:11
2
answers

Add a datepicker calendar to multiple dynamically generated fields

Add Calendar Datepicker | jQuery UI and several dynamically fields? This snippet of code is only formatting the mask of input : dd / mm / yyyy , I need it to show the calendar when the user clicks inside the input field an...
asked by 24.02.2016 / 13:34
1
answer

Entity Framework DDD Generic Repository

How to do JOIN via lambda in the generic repository. I'm following the DDD architecture model. Example: public class BaseRepository<T> : IRepositoryBase<T> where T : class { private IDbContext _context; private read...
asked by 15.11.2014 / 01:41
2
answers

Measure time that the user is logged into the system

I need to know how much time the user has spent on the system. In other words, how long it stays, from the moment you login , until logout OR close the browser / etc. I do not even know how to start. I thought through cookies or...
asked by 08.09.2014 / 22:11
3
answers

Load dynamically from the database and mount a treeview in cshtml I'm not getting

is as follows. I'm not getting the satisfactory results in assembling a tree using checkbox like in a treeview. Well, when I put in the data it works fine. But when I bring the DB data, that's complicated, that is, it does not work. The logic is...
asked by 10.09.2014 / 19:52
1
answer

Asp.NET + PagSeguro

Good morning, I arrived the moment you need to add the payment methods. and I want it for Pagseguro. What's the first step in doing this? Where do I have to implement the payroll classes in my project? Should I separate into a new project? I fou...
asked by 15.04.2016 / 17:28
1
answer

Doubt with WebApi data insertion

I'm using Postman: Error:"Object reference not set to an instance of an object." I have the Controller Code: //http://localhost:1608/api/ApiGuiaCidade/cadastrar/cliente //"Referência de objeto não definida para uma instância de um...
asked by 10.11.2015 / 18:25
1
answer

How to debug a C # MVC application externally [closed]

I would like to know if there is a debugging of an MVC C # application externally, I tried to use IIS Express, but without success, someone has already experienced this situation or, can anyone help me do that? Thank you.     
asked by 27.10.2015 / 12:52
2
answers

Error in making an Insert in the bank

I'm trying to save some data in the database and I'm getting this error:    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_dbo.Domains_Dom.Alumni_Alumni". The conflict occurred in database "aspnet-CEF01-20140410111235", t...
asked by 21.05.2014 / 15:27