Questions tagged as 'mvc'

2
answers

How to return the value of an HttpPostedFileBase in a Post method of the MVC Controller C #

I have a model like the following: public class Model_ejemplo { public HttpPostedFileBase image { get; set; } } in my controller I receive my model with this property [HttpPost] public ActionResult index(Model_ejemplo Model) { Retur...
asked by 21.05.2018 / 15:55
0
answers

Architecture site with cakephp

I am creating a project and they asked me for the architecture of the site, I built it in the following way but I do not know if it is the correct one.     
asked by 15.05.2018 / 23:03
0
answers

php search

I want to do a search by cedula, and if it is found that I reton to an edit but if it is not found that I return the value to a register but it does not return anything to me This is where I do the search < form action="" method="POST"&g...
asked by 16.05.2018 / 00:44
0
answers

How to use the dynamic connection parameters

Currently this code gives me an error when the session expires, because it loses the data, what I would need to be able to store the connection data, the variable that never loses the data and that is accessible to all controllers. In the ses...
asked by 24.04.2018 / 18:49
0
answers

How to pass a UserManager object to the Initialize class

I have a class in asp.net core 2.0 called Initialize that has a method public async static Task SeedData(IServiceProvider serviceProvider, UserManager<ApplicationUser> userManager) { } I want to call it from my Startup class as follo...
asked by 23.04.2018 / 00:29
0
answers

ERR_TOO_MANY_REDIRECTS

I have a situation, I hope you can help me. I'm having an ERR_TOO_MANY_REDIRECTS error when from the BaseController of an MVC 4.5 application I try to redirect the user who is not logged in to the Login page. It should be mentioned that this pag...
asked by 20.04.2018 / 22:53
0
answers

link a select option with a checkbox. C # MVC

I come with you as I would like to know how to do the following. In this table: When I select the checkbox I generate an arrangement to save the value of the selected checkboxes, the detail is that I need to be able to link the value of...
asked by 30.04.2018 / 18:35
0
answers

mvc Resource not found

Use VS 2015 I have a controller called ClientsRWController and an Index2 view, in the Route config I have: routes.MapRoute( name: "ClientesRW", url: "{controller}/{action}/{id}", defaults: new { controller...
asked by 17.04.2018 / 21:23
0
answers

MVC 4 + NEST (ElasticSearch) - ElasticClient

I am using MVC 4 and I am doing tests to use NEST (ElasticSearch). When I run the following code: var node = new Uri("miURI"); var settings = new ConnectionSettings( node ); NameValueCollection headerAuthorization = new NameV...
asked by 19.04.2018 / 10:42
0
answers

User profiles customized by the customer

I appeal to you because I've been "googling" a lot without a positive result. We have an application ASP.NET MVC which is multiple-company and multiple-user, this means that each client of ours It is a company within the application and eac...
asked by 17.04.2018 / 14:58