Questions tagged as 'asp.net-mvc'

3
answers

How to implement the method in Json using Serializable?

GET PUT DELETE POST I made a GET method, looked like this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Script.Serialization; using System.Web.Services; /// <summar...
asked by 18.05.2015 / 22:30
1
answer

Make a query in Linq and see in index

I wanted a linq query that shows the attributes of the availability table and the name of the respective catechist that is in the person table. In the index will appear: Nome | AnoPastoral | DiaDisponivel | HoraDisponivel | Observacoes I'm...
asked by 14.12.2015 / 13:24
3
answers

How do I log in to a desktop application via a web application?

I have a web application developed with ASP.NET MVC and login by storing the data in the Session. I have another application, but desktop, which does some tasks that can not be done on the web, but this application needs to be authenticated w...
asked by 18.02.2016 / 14:24
2
answers

Upload Image Asp net MVC

My question is this: imagine a scenario where I have a screen that has a form, and in this form there is also upload of images. Let's suppose I fill out the entire form, and select 3 images in input type file , when submitting, there in...
asked by 20.01.2016 / 05:30
1
answer

Replicate / Copy elements from multiple tables

I have the following situation: The user has defined an establishment, where it has filled data in two tables, and wants to replicate / copy the data all the same, changing only the id of the establishment. I have the tables: ThetableAcidImpu...
asked by 16.04.2014 / 11:03
1
answer

How to solve the medium trust problem in asp.net

I'm developing a website in Asp.Net MVC5. When I publish the site in LocaWeb and try to login with my user I received the message: Attempt by security transparent method 'Microsoft.AspNet.Identity.ClaimsIdentityFactory'2+<CreateAsync>d__...
asked by 30.05.2014 / 03:38
3
answers

Recognize duplicate items in a list

I'm getting a list of items in my action public ActionResult New(List<Itens> Itens) { return View(); } How do I recognize which items are duplicates in this list?     
asked by 27.03.2015 / 22:08
2
answers

What are routes in ASP.NET MVC?

In ASP.NET MVC I always get the term route when #, however, I started to study APS.NET MVC a short time ago and this term route / strong> this is causing me confusion. Question I would like to know what are routes and what is their p...
asked by 29.10.2016 / 02:41
3
answers

Is there Data Annotation that avoids duplication of data in the Bank?

How do I prevent data being duplicated in the database using Data Annotation or would it be through another validation?     
asked by 10.11.2016 / 16:18
2
answers

Password encryption

I have an Asp.Net MVC project and would like to securely store user passwords in the database. Home The goal is to create something that can not be easily decrypted in a few hours of brute force on a PC (I'm aware that with a little more effort...
asked by 15.09.2015 / 23:24