Questions tagged as 'asp.net-mvc-5'

1
answer

Problems with CheckBoxFor and ListBoxFor [duplicated]

I need to render in my view a series of fields type checkbox (9 in total) where if one of them (the number 8) at the moment of clicking on it should appear a field type select , this last I already have it developed with jquery...
asked by 05.06.2018 / 17:38
1
answer

How can I redirect to another external page?

I have an Action Filter that validates if something exists and executes a redirect to redirect to a page x. public class CustomFilterAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext f...
asked by 25.06.2018 / 22:42
1
answer

C # Razor HTMLHelper Dropdown

Friends I'm doing a drop down list with Razor and I'm trying to get the drop values, but I only get the name that I put in place of their values someone could guide me or tell me where I am wrong? [HttpPost]...
asked by 17.05.2018 / 18:22
1
answer

How to rename the tables created by the EF by default?

Can you rename the tables created by the EF by default? When creating a project with some authentication mechanism, a number of tables corresponding to the logeo system are created automatically.     
asked by 19.06.2018 / 03:00
1
answer

How to upload files in MVC C # on the cell phone?

I am making a form in which you have to take a picture and answer on a cell phone. I have researched the best thing that I found is to use HttpPostedFileBase but I get the null parameter on the Internet I have seen examples with only the image b...
asked by 09.04.2018 / 20:21
1
answer

Does it help to pass a query in MVC 5 to a view without generating migration?

Hello, I'm all working on a project in MVC 5 with the Data Entity migrations, generate a table but now to that same project I want to make a query of another existing table, a SELECT and send the records as a table to a view, but not modi...
asked by 01.06.2018 / 05:51
1
answer

Call a controller from a view that belongs to another controller

I created a project in VS 2017 with Scaffolding (CRUD) has created the views. But now how can I call the CRUD driver within the project that VS creates by default, I put the name of the driver in the URL and it works, but I need to call it a...
asked by 06.04.2018 / 00:48
1
answer

How to modify the webconfig connection string from the controller

I have this conexionstring and I would like from the controller to change the data source and other parameters, how can I do this? Thanks in advance     
asked by 17.01.2018 / 16:47
1
answer

Disabled does not work in the driver

I'm doing a web application in c # asp.net mvc5, I have a dependent dropdown that is loaded through a javascript function and the data is from the database To this dropdown I want to put a text - Select - , and in turn this text leav...
asked by 18.12.2017 / 22:42
1
answer

Alert of ASP.NET objects in JS

Hi, I would like to know if I can do something like this in ASP.NET, because they know something like that I need to do, please do not eat me if it's a bad question, I see it more as a challenge: 3 var idt = 2; function detailTry(idt)...
asked by 19.12.2017 / 19:21