Questions tagged as 'asp.net-mvc'

1
answer

List of View objects for controller

I have two Client and Address entities where the client has multiple addresses. At the time of filling out the form, the user can add two addresses in the same form and at the time of the Submit, would like to receive the data of the client and...
asked by 19.10.2016 / 04:33
1
answer

Doubt with Routes in Asp.net mvc

When you create a Controller , you create one: public ActionResult Index() { return View(); } But in this Controller , if you have a new Action and a parameter is necessary, if the user tries to open this...
asked by 29.07.2016 / 16:55
1
answer

Modify table AspNetUserClaims Asp.net Identity

Good morning, I have a logic problem with identity. I need to create an access screen and would like to use the table claim already made available by it. The big problem is that the table creates a foreign key for the AspNetUsers table, I...
asked by 01.08.2016 / 15:52
1
answer

.OrderBy dynamically in Lambda

I have a field int called OrdemDosProdutosDestaque where I store the preference of the products order (My client that chooses and stores in the database). ex: 1=Aleatório 2=Preço 3=Referência 4=Categoria etc.. Model Config...
asked by 04.07.2016 / 20:25
1
answer

Is it possible to leave connectionString dynamically?

I have read something and know that it is possible to leave a connectionString dynamically in an ASP.NET MVC application. But is it possible to create n connections where each authenticated user on the system has its own connection to a part...
asked by 12.08.2016 / 15:57
2
answers

Assembly Microsoft.Owin not found

In my project I am using the OWIN library for user authentication. I have already installed the package, but when I run the project, the error is returned:    Could not load file or assembly 'Microsoft.Owin, Version = 2.1.0.0, Culture = neutr...
asked by 10.08.2016 / 05:44
2
answers

Make submit a form via ajax

I have the following code in my controller: [HttpGet] public ActionResult Mensagem(long idT, long idD) { string raaluno = acr.getAlunoLogado().ToString(); ViewBag.idT = idT.ToString(); ViewBag.idD = idD.ToString...
asked by 08.06.2016 / 03:54
1
answer

Return with several json with jquery .net

I need to return to json a json, or rather several json, being city, neighborhood, state, parents, each being a json in the same method, but as it is not possible to do several returns I put the obj list up in one list list. List <...
asked by 02.08.2016 / 22:46
1
answer

Can I create modules in asp.net mvc?

I have a home page with contact and such, similar to other pages. In the page I have a Login button and when I click on the same redirect to a project module. Example: Home localhost / Home / Home / Index Login localhost / EAD / Login / In...
asked by 12.05.2016 / 22:12
1
answer

ASP.NET MVC error displaying date and time fields in View

Hello I'm having some trouble uploading to View. In the database I have this data saved: Start Date: (datetime) 1998-11-16 00: 00: 00,000 DateTime: (datetime): 1998-11-16 00: 00: 00,000 Timetable (time): 09: 00: 00.0000000 Sida Ti...
asked by 15.07.2016 / 15:56