Questions tagged as 'asp.net-mvc'

0
answers

EF6 does not add all the tables to the conceptual model

Good morning, I have an asp.net mvc project that I made with EF5 and I had no problems updating or bringing new tables, however I decided to use the EF6 to test the functionalities it has but it turns out that when I wanted to update my schema s...
asked by 24.05.2016 / 19:19
1
answer

Filtering does not work on the telerik mvc grid

This is my code that shows the network when the page loads. When I enter the text to filter, it says there are no records to show. @model IEnumerable<SAReds.UI.Web.Models.DepartmentModel> @(Html.Telerik().Grid<SAReds.UI.Web.Model...
asked by 01.05.2016 / 15:35
2
answers

Problems with [Authorize] custom

I have a% custom [Authorize] that extends from AuthorizeCore in which I do a validation to return a true or false , until there all right, if I enter my page and I'm not logged in, it redirects me to my default page. But...
asked by 26.06.2018 / 16:24
4
answers

Load DateTime in c # in dd / mm / yyyy format

Good day! I'm doing a program of loading and showing movies, The movie class has an attribute of type DateTime release date. My problem is that, when I upload the release date in dd / mm / yyyy format, I do not take it. I have to load yyyy / mm...
asked by 28.11.2017 / 13:49
2
answers

What is the best way to convert a string to Capitalize? [duplicate]

I have a string which I need to convert its value to capitalize . Example: string cadena = "HOLA MUNDO"; I need to return the value like this - > Hello World What would be the best way to achieve this?     
asked by 15.05.2018 / 22:58
0
answers

How to take the percentages well in report foot teleriks Q3 2013

Very good afternoon, I am trying to create a report in teleriks with the assistant, trying to make a foot, where I show the percentage of projects canceled vs the projects created, the graphic does it well, however it gives me all the 100% value...
asked by 24.04.2016 / 02:45
2
answers

how do I set the number of decimals I want to show from a double in c #

My problem is that I am using Math.Round and it is rounding, what I need is that it only shows me a single decimal without being rounded This is my normal result double rap = 0; rap = (11300 - 8508.54)* 0.015); That this gives me...
asked by 12.11.2018 / 21:45
1
answer

How to change the name of the cookie that the token creates in the forms?

I have a form where I occupy @Html.AntiForgeryToken() which creates a cookie of name __RequestVerificationToken which I want to hide. For this I thought about changing the name of that cookie to another one so as not...
asked by 13.06.2018 / 23:52
1
answer

What is the difference between DTOs and ViewModels? [closed]

   I can not understand their difference and what is the purpose of using AutoMapper     
asked by 26.03.2018 / 19:17
1
answer

Differences HttpRequest and httpRequestBase

From the controller the controller class gets the property Request and from System.Web.HttpContext.Current.Request but I do not understand the utility: public class HomeController : Controller { public ActionResult Index(Http...
asked by 04.11.2016 / 20:34