Questions tagged as 'asp.net-mvc'

0
answers

Call Controller with parameters from radio button click event

Controller public ActionResult Index(string Color, string Numero) { return View(); } In the (simplified) view ... <div id=”radioColor”> <input type=”radio” id=”Color” name=”Color” value=”rojo″ >Rojo</input > &l...
asked by 11.09.2018 / 03:17
1
answer

error 500.19 IIS 7.5

I have a development developed in .net mvc 5 with framework 4.6.1, I'm doing a local server IIS 7.5 windows 7 to work in a local network, and configure it and when I add my files to deploy my application in .net I get error 500.19, but when I ad...
asked by 23.08.2018 / 00:53
0
answers

How can I read the Expires of a cookie?

I have a cookie which is called C__COOK containing a value 1 what I need to do is to be able to read this cookie completely, I mean with this to its property Expires to be able to use its value in a conditional. I...
asked by 05.07.2018 / 19:11
0
answers

Help generating a table to capture information wn c # mvc

The problem that I present is the following. 1.- In a View I have to capture fields for two models, then what I do is the following. in the index actionresult, in order to generate the model I occupy the following. var user = db.MtoUsuar...
asked by 26.06.2018 / 16:38
0
answers

Application in Mvc5 asp.net system of schools [closed]

I have an application in mvc 5 asp.net and I would like to generate an alphanumeric number automatically eJ: abcd-001-2018 and have it registered in the database ...     
asked by 29.06.2018 / 16:21
0
answers

Inventory: update stock according to the amount that the user enters in an input in razor

I'm doing an inventory system, where I have to add or remove stocks of a product. I currently have a table producto where I keep the product data (as well as the amount that I have in stock), and a table movimientoEntrada , where I...
asked by 11.04.2018 / 19:10
0
answers

Error trying to read gmail emails from c #

I'm trying to read the emails in the Google inbox, the point is that when I try to execute the code it generates an error in this line using (Pop3Client client = new Pop3Client()) The error generated is as follows: {"Error en la inicializ...
asked by 13.12.2018 / 21:37
0
answers

Problems with for loop when rendering input checkbox

I have the following problem when rendering some input checkbox , I go through a loop for with a model type List<> as in the following example: @for (int i = 0; i < Model.MiModeloList.Count(); i++) { if (Model....
asked by 04.06.2018 / 17:22
1
answer

C # Razor - error when saving a form with radio button

I have a problem saving a form by a radio button, it always saves the value zero and must be on demand according to what the user selects: <div class="form-group"> <label for="BONUS" class="col-md-2 control-label">Bono:</lab...
asked by 29.03.2018 / 05:45
0
answers

Copy pass to clipboard

Just start my page when I print the data table, in the password field what I print is ****** to hide the password, to show it I have the following: I have a @Ajax.ActionImage(@"~/Content/images/eye.png", "Mostrar Contraseña", "RequestPasswo...
asked by 27.03.2018 / 13:08