Questions tagged as 'asp.net-mvc'

1
answer

Open an Excel file from an ASP.NET form

Hello friends, I'm getting an excel like HttpRequestPostedFileBase from a form of Asp.NET , but I need to open it, I know I can store the file and send it to me    Workbook sheet = excel.Workbooks.Open ("path / file.xls"); The path o...
asked by 16.08.2018 / 17:58
1
answer

Input Boxs "more" in one view

I am creating a view for the creation of gymnastic routines, but it turns out that there is an "over" input box from each dropbox of the exercises and I can not find out why. this is the html: @model FitnessWebApplication.Models.R...
asked by 17.08.2018 / 20:32
1
answer

Problems with the "Autorize" tag in asp.net core 2.1

I have been using ASP.NET Core 2.1 and when accessing as an unauthenticated user I have decided to use the [Authorize] tag in the controller, the tag works perfectly, however, when performing the redirection, access the following url: h...
asked by 09.07.2018 / 00:10
1
answer

I can not make a Redirect towards an external url

I am creating an action filter to validate certain data in which, if followed, it follows the normal flow of the application, but otherwise it must be redirected to an external url. So far I have been doing tests and nothing has worked for me...
asked by 26.06.2018 / 15:09
1
answer

Confirm with data anottation a checkbox

I have a form that contains 9 input of type checkbox I need to validate that when sending the form at least one of them comes tickeado. I have the following in my view <div class="col-12 col-sm-6 col-md-3 li"> @Html....
asked by 29.06.2018 / 21:25
1
answer

Why does not the [DataType (DataType.Password)] work for me?

I have a model CredencialesViewModel which has a property Pwd type string add the decorator type data, but in the view does not render a input type password if not that one type text. / p> Why will this be?     
asked by 12.06.2018 / 21:43
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

Javascript function that does not work

Good afternoon everyone what happens is the following I have a function in JavaScript which cancels letters in a textbox and does not work I have the following $(function () { $(".numbers").keydown(function (e) {...
asked by 17.09.2018 / 21:22
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

How to make a personalized data annotation?

I need to validate the routine (Chilean ID) that is entered in a form, for this I am using asp.net mvc 5, but I do not know how I can create my own validator for this data. Can someone help me or guide me on how to create this validator?    ...
asked by 25.05.2018 / 23:33