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...
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.
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...
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...
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...
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...
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...
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...
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...
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...