Most voted "asp.net-mvc-5" questions
This tag should be used when the question refers to some features only available in version 5 (currently the latest) of ASP.Net MVC. ASP.NET MVC is an open-source Microsoft framework that implements the Model View Controller architecture standards for web development. Based on ASP.Net, allows software developers to build web applications following the Model View Controller architecture standards.
Learn more…937 questions
Sort by count of
-
0
votes1
answer1459
viewsHow to pick up an existing cookie via javascript
In my project I have a page that is html. And since my project is in Asp.net mvc, I can’t validate whether the user is logged in or not because this page is not Razor. Researching, I found the…
-
0
votes1
answer266
viewsModelstate.Isvalid in modal registration
I am using a registration form within a modal, however when the condition of the ModelState.IsValid is not satisfied with view is returned. Only instead of returning the same view before the action…
-
0
votes1
answer269
viewsLogin to index screen
Talk to the guys, all right? So I’m developing an application in ASP.NET MVC and I have a login screen, but I include in the login navbar, where the index the user could enter his email and password…
-
0
votes1
answer220
viewsConcurrent Use in Asp.net Applications
I’m starting to study programming in Asp.net mvc (and trying to follow the DDD) and, with this, I came up with a question regarding the concurrent use: Asp.net already performs this control for me…
-
0
votes2
answers958
viewsNullreferenceexception in User Filter
In my project I made a filter to see if the user is already logged in. To prevent the same Log twice in the system. According to the answer to my question I make a filter class and search the ID…
-
0
votes1
answer135
viewsQuery with Pagedlist
I am using Pagedlist.Mvc for results pagination. But when doing the following action with the querys: public ActionResult Index(int? page, string searchString) { int pageSize = 10; int pageNumber =…
-
0
votes1
answer298
viewsDate validation with Dataannotation
I wanted to know if you have how to validate if the Date entered is higher or not than the current date using Annotation, or if I have to deal with the same controller. If you can, please provide an…
-
0
votes1
answer54
viewsWay to save only two information
I have in my project a new business rule. I need that in a view details, I have a small form to save only two information: Delays and No Uniform. I already got the chart done. But I needed that form…
-
0
votes0
answers91
viewsProcessing of a string in the view - Asp.net MVC
I have a public string TimeUpdate { get; set; } in my model that is of the form "13-12-2016 17:12:09".I need that in the view it appears only the hours and the minutes, as I can do the field…
-
0
votes1
answer345
viewsAsp.Net Mvc Remote Validation
So I’m trying to implement RemoteAttribute, but by clicking the button submit, is not giving the post on my page. My Controller public class TesteRemoteController : Controller { // GET: TesteRemote…
-
0
votes1
answer749
viewsApply CSS Style to Razor elements ex: Editorfor
How do I apply a style to all EditorFor of my View? Field example: @Html.EditorFor(model => model.Photo, new {htmlAttributes = new {@class = "form-control"}}) I tried to do it this way but I…
-
0
votes1
answer1168
viewsPassword encryption in login
I need to create a way to encrypt my password in my system login, because I haven’t implemented this security yet and I don’t have much idea how to do this. So how could I create this encryption and…
-
0
votes1
answer101
viewsDoubt about Entity Modeling
I have an entity called Requests that satisfies the following business: A request is made by an Employee(Entity), then it is changed by another Employee and then confirmed by a third Employee. In a…
-
0
votes1
answer46
viewsHow to put a test site running on the same server
I have my company’s website, and wanted to assign another project for testing without needing another server. It would be basically like this: www.meusite.com/projectThis/pagina1.cshtml that is,…
-
0
votes2
answers1535
viewsError running project in Visual Studio 2015 - Process with an id 7256 is not running
I’m trying to run a project I developed and this error is happening. Process with an id 7256 is not running. What I must do to solve this problem.
-
0
votes1
answer229
viewsIncoming SMS
I’m trying to learn to mess with the twilio applying it to a project, even testing, in ASP.NET MVC 5. Amid my Google dig, I found this tutorial here which explains how to use it. I did everything…
-
0
votes2
answers101
viewsRegularexpression allow greater than 0.00
False value: 0,00 -- false True value: 0,01 -- true 0,10 -- true 1,00 -- true 10,00 -- true 100,00 - true 1.000,00 -- true 10.000,00 -- true 100.000,00 --true 1.000.000,00 -- true 10.000.000,00 --…
-
0
votes1
answer293
viewsHow to order dropdownlist?
How can I order the Dropdownlist? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div…
asp.net-mvc asp.net-mvc-5 bootstrap-3 razor dropdownlistasked 7 years, 5 months ago Marcos Rebitte 9 -
0
votes2
answers5176
viewsjQuery dynamic table
I’m new to Development,and so on @model CeoScrum.Models.Funcionalidade @{ ViewBag.Title = (Model != null && Model.Id > 0 ? "Edicao" : "Cadastro") + " de funcionalidade"; Layout =…
-
0
votes0
answers200
viewsHow to pass a parameter to the controller that contains / (bar)
I need to pass a parameter to a Controller, however, this parameter contains / (bar). Example: 5701/1_1 5966/2_5 7881/6_1 To pass the parameter I’m using @Url.Action: @Html.ActionLink("Visualizar",…
-
0
votes2
answers176
viewsHow to create a View to insert multiple entities
I have an entity that has daughter entities, such as: - Supplier (has main supplier data) - Suppliers - Supplier of telephones - Suppliers - etc.... Where each entity is a database table related to…
-
0
votes1
answer1913
viewsHow to Request JSON Data
I need to collect some data from a program that has API: Pipedrive API Reference If I understand correctly, for each task, a URL will be generated to do the Requeste from the data, example:…
-
0
votes0
answers1108
viewsCould not find file 'c: ... bin Roslyn csc.exe'
Follow picture: I went to update Microsoft.CodeDom.Providers.Dotnetcompilerplatform with the latest and stable version. Then I upgraded 1.0.5 to 1.0.6. He wasn’t like that anymore. Now he keeps…
asp.net-mvc-5asked 7 years, 3 months ago Matheus Miranda 5,375 -
0
votes1
answer561
viewsError using Automapper " Class Not Found"
I’m studying the use of AutoMapper, but I get an error in my project. Automapper version: v3.3.1 I added the Config in my Global.asax, ficando assim: protected void Application_Start() {…
asp.net-mvc-5asked 9 years, 7 months ago Randrade 21,612 -
0
votes1
answer58
viewsHow to pass more than one Controller option in Routes.Maproute()
I have the following route: routes.MapRoute( "Contracts", "Home/Contract/{contract}", new { controller = "Home", action = "Contract", contract = UrlParameter.Optional }, new { contract = @"\w+" } );…
-
0
votes0
answers27
viewsSelect combo box or dropdownlist google maps
Galera I’m using google maps in an application this saving everything ok, but a question arose how could select a combo box by State, and all records that is in my table with that state appear on…
-
0
votes1
answer35
viewsRegistering attributes from different classes in the same View
I have a Teacher class that has a User, and I want to register the User fields in the Teacher View. How can I be doing this public class Usuario { public int Id { get; set; } public int Matricula {…
-
0
votes1
answer29
viewsCan I set up an upload page, which can receive photos, video and zip packages containing photos and/or videos?
I am like an application where the registered user has a page of uploads of images and videos and I wanted to know if there is how, in addition to receiving photos and videos by uploads, if I can…
-
0
votes2
answers657
viewsSave Image in VARBINARY with C# ASP.NET
How do I get a received image in a Form HTML and write to the bank in VARBINARY with C#? I’m using C# ASP.NET MVC5 CORE.
-
0
votes0
answers122
viewsreturn/download pdf from backend to ajax
I am converting an html to pdf, I managed to generate the pdf in the backend with Submit, but with ajax I cannot download the pdf.. How can I treat in ajax to download? Code: [HttpPost]…
-
0
votes0
answers22
viewsHow to simulate a background action to solve inactivity problem?
I have a website in ASP.NET MVC5 in the company "Vaipapai" (no merchandising here right), this hosting is shared and I can not decide the downtime for the session to fall, in the case as default…
asp.net-mvc-5asked 6 years, 8 months ago Leonardo Bonetti 5,313 -
0
votes0
answers168
viewsParser error
you have already come across this kind of problem? This mistake has started to happen in a project that is already in its final phase. To test the environment I created a simple project and while…
-
0
votes0
answers412
viewsC# - Tool for signing a PDF document
I need a tool that allows a person to sign a PDF document at a particular location of the document, does anyone have any tips? But you have to allow it to do this internally in my application, tools…
-
0
votes1
answer100
viewsUsing cache during user session
I am using Outputcache in an Asp.net mvc5 application to cache a list in my application as follows : [(Duration = 60, VaryByParam = "none")] public ActionResult Index() {} I just need to take…
-
0
votes1
answer595
viewsButton only work if you pass the ID in the URL in Asp.net MVC
I’m having a problem with my Courses manager application in Asp.net MVC. The scenario is as follows: I have a screen where the "Student" makes his registration in a course. By clicking on the…
-
0
votes1
answer1236
viewsError {"The object reference was not defined as an instance of an object." } System.Nullreferenceexception MVC ASP.NET
Well, it now gave me an error on the main page so I tried to pass the resgisto values to the index. the error is in line 35 of the index of the main page with the code: @foreach (var item in Model)…
-
0
votes1
answer179
viewsIs Asp.net MVC better working with Areas or Projects within a Solution?
I’m creating a portal and separating the modules by Areas. But the demands are increasing a lot, already has at least 5 more modules to be written in the portal. What is the best way forward in…
-
0
votes1
answer175
viewsFormat date using Htmlhelper
I need the date of my model to be displayed in the "dd/mm/yyyy" format in my view, today it displays in the "yyyy-mm-dd" format. Follow the excerpt of my code: @Html.DisplayFor(modelItem =>…
asp.net-mvc-5asked 6 years, 5 months ago Eduardo 1 -
0
votes1
answer491
viewsHow to display messages (Summay) to the user in the Index view
I have a View Index and via the Create view is opened in a modal form from it. When I open the Create modal, I fill in the fields and click on the save button the modal remains open and Summary…
-
0
votes1
answer649
viewsChange a JS Function to open two different Modal Bootstrap Windows - Asp.Net Core MVC
Currently, I have a Modal (modalGenerica) in my Index that opens the Create, Edit and Delete views in a generic way. To open the Create and Edit views, there is no problem, as both open in a modal…
-
0
votes0
answers44
viewsSite integration with Excel spreadsheet
Hello, I wonder if it is possible to use an excel sheet already configured with formulas and records as a "database" of a website. The intention is for the person to access the page, enter the data…
-
0
votes0
answers92
viewsHow You Configure Checkboxes Materialize Css in Asp.Net MVC Web Application
How do I set up Checkboxes in the Asp.Net MVC Razor Since in the documentation we have the following configuration Materialize for checkboxes <p> <label> <input type="checkbox" />…
-
0
votes0
answers214
viewsUpload Image and save to Asp.net server
Friends could help me create a function to record the path + image name in the database, and save the image on my server ? I’m using the field model.PhotoName which is a string to store the path,…
-
0
votes0
answers36
viewsASP NET MVC 5 - The post’s Return view is not updating fields
When I post the form this calls an API that returns the fields "Exchange Value" and "Calculated Value", the values are loaded in the model object, but the field on the screen is not being updated.…
asp.net-mvc-5asked 6 years, 1 month ago Paula Santos 1 -
0
votes1
answer931
viewsSession configured on Web.Config and IIS Session State is expiring ahead of time
Setting: I store the Session of the user to keep it logged in to the system, but something is happening that in 10 minutes it is undone because the Session expired. But so much in the Web.Config how…
-
0
votes1
answer70
viewsHow to run a method on startup of ALL Controllers?
I have a static class that carries language in relation to cookie stored or the URL. Throughout controller I have to insert once the following method: protected override void…
-
0
votes1
answer64
viewsAlias directive - What would it be?
Good afternoon, everyone, I’ve been studying C#, I came to see about the Directive using, and in the C# documentation it says it has 3 uses, one of the 3 use items says it serves to create an…
-
0
votes1
answer84
viewsProblems loading a modal modal pop up with custom 404 error
Hello I generated some error pages in my application in mvc, however I realized that this giving error when I try to load a modal, instead of it load my modal it loads the page of error 404 follow…
-
0
votes1
answer73
viewsRepeating data from a JOBJECT
I managed to make my JArray return a list, in this list contains 03 Ids, but the way the system was done, they made a way to return only the first Array. Follows the code of what is returning to the…
-
0
votes0
answers47
viewsArgumentexception: The 'Clientid' option must be provided
I’m uploading my application to the aws servers. When I run the application locally it works perfectly, but when I test it in the cloud I get the following error. The parameter 'Clienteid' is my key…