Questions tagged as 'asp.net-mvc'

1
answer

How to render 2 typed view of different controllers

How do I render 2 typed view of different controllers ? Controller: public ActionResult Index() { Cliente cli = new Cliente(); cli.Nome = "Al Unser"; return View(cli); } Index: @model MvcRazor.E...
asked by 20.08.2016 / 04:17
1
answer

Redirect to error page when entering catch

I'm having a question about a possible improvement in the method when an error occurs in a Action and redirects to an error page. I currently do this in Action : public ActionResult Index() { try {...
asked by 11.06.2016 / 15:49
0
answers

Configuring IIS to authenticate using Active Directory

I created a web system using C # and used a routine to authenticate the user by picking up the Active Directory user. But my system is not catching user AD: it is catching the user from the pool of the application. When I run the system locall...
asked by 21.01.2016 / 21:49
1
answer

Prealoder when requesting dowload

I'm doing a return of a pdf from a Custom ActionResult response.ContentType = "application/pdf"; response.AddHeader("Content-Disposition", "attachment; filename=teste.pdf"); And I would like to know how I could make a preloader...
asked by 16.09.2015 / 19:20
0
answers

How to implement certificate chains? what is the importance / function?

I created a local application in VS and when uploading on the server the application was not all the resources of the local application, in the application I am using X.509 and found a difference when listing the CA: //X509Store store = new X5...
asked by 06.11.2015 / 17:26
1
answer

Import .csv file to server

I am performing a task to import data from a .csv file to the server. I can already import the file all right on the server side, however each file contains about 25,000 records and the user is waiting until the upload is complete. I put a simpl...
asked by 16.02.2016 / 20:22
1
answer

Function that returns other functions

I have three methods being called separately in the controller with JSON. Each of them returns me Id Name . I need to call these three methods in the same function in controller . How can I join all three methods in the same functi...
asked by 28.09.2016 / 14:30
2
answers

How to solve error with OWIN?

Well friends, I've created an Asp.Net MVC web project with No Authentication , but now I'm in need of authentication. I'm following some tutorials like this to put authentication from scratch, but after installing EntityFramework an...
asked by 02.06.2015 / 15:57
1
answer

Error Opening System.InvalidOperationException database?

I'm using webMatrix, to develop an example in JqueryMobile, I'm having the following error @{ Layout="~/shared/_Layout.cshtml"; Page.Title = "Home"; Page.Header = "Categorias"; var db = Database.Open("Northwind40.sdf"); va...
asked by 20.05.2015 / 22:46
0
answers

Questions about Forms Authentication ASP.NET [closed]

I have an ASP.NET project and need to insert a user control to limit access to the pages. There is already a table in my bank with Login and Password, I found some tutorials that explain how to use Forms Authentication but I do not quite under...
asked by 21.05.2015 / 16:33