Questions tagged as 'asp.net-mvc'

1
answer

Resource with database

Well I have the following environment: Table: Livro id titulo tituloEN descricao descricaoEN Controller: [LivroController] public ActionResult Index() { var livros = bdLivro.ListarTodos(); return...
asked by 25.07.2014 / 15:09
1
answer

How to send html from one view to another view?

I have a view (View1.cshtml) with filters, a whole layout and a graphic inside a div that is generated according to the filters. I created another blank view (View2.cshtml) and would like to pass it to just that div with the generated graphic...
asked by 21.05.2014 / 16:36
1
answer

Change password Student

In the student environment, it should change your password. I created the code below but I can not get results in the database. Does anyone notice anything wrong? [HttpPost] public ActionResult AlterarSenha(CONSUL_CA_Aluno aluno) { stri...
asked by 14.05.2014 / 20:13
1
answer

Send email using NetOffice ASP MVC

I'm starting to send emails in my application, so I'm trying to use the package of NetOffice to send and receive emails. What I am trying to do is: From the account logged into the local pc with the Outlook application, I send an email with...
asked by 14.04.2014 / 17:28
2
answers

SqlDataAdapter Query with Parameters

I'm having difficulty returning a query in the database using SqlDataAdapter with parameters. Well, I have a layered application in my View when I first access feed a GridView with a query (this part is ok)! In this same View...
asked by 05.06.2014 / 20:22
1
answer

How to add a value sent from an onclick to the Ajax 'date'?

I have a table in HTML and in a table column there is a link that opens a Modal. In this way I make approval records and show who approved and the date of approval (more than one person can approve, so he has a list of approvals). To do t...
asked by 20.03.2014 / 15:24
1
answer

Asp.net Identity Good practice authorization

I have my user using asp.net identity for authentication as usual I have my class implementing IUser public class usuario: IUser { public User(){...} public User(string userName) (){...} public string Id { get; set; }...
asked by 07.03.2014 / 20:39
3
answers

Problem with the Bundle

I'm developing a project and it's time to work on its performance, and I've been using the bundling and minification MVC 4.5 , it worked as expected, it put together all the styles that are set up in a bundle , made a minified i...
asked by 21.02.2014 / 20:01
1
answer

Error opening Partial's in a new tab from a function in javascript

I have the following case: I have a "Third Party" navigation page, with several Partials that defines its corresponding data. To do this navigation I'm doing it by javascript , and I load Partial as follows (example of a p...
asked by 30.04.2014 / 11:54
1
answer

System.Web.Mvc.Web disappeared, what can I do?

After some updates, my helpers began to give problems, for example, if I were to use @Html.TexBoxFor , Razor would not recognize it. After searching a lot, I was asked to use @using System.Web.Mvc.Web in View that I was writing....
asked by 25.04.2014 / 19:39