Most voted "asp.net-mvc" questions
ASP.NET MVC is an open-source Microsoft framework that implements the Model View Controller architecture standards for web development. Based on ASP.NET, it allows software developers to build web applications following the Model View Controller architecture standards, featuring a variety of features following recent trends.
Learn more…3,385 questions
Sort by count of
-
1
votes1
answer72
viewsHow to approve a model depending on another model confirmation?
How do I make for the View request only appear to the user, when the class confirmation Aprovacao for true. Follows the logic: 1- user creates the request and register, 2- user awaits confirmation…
-
1
votes1
answer107
viewsKendo UI Scheduler
I implanted the Kendo UI Scheduler (calendar/calendar) template in my ASP.NET MVC project, but I’m having problems with it’s pop-ups. For example: The popup does not close itself when you click on…
-
1
votes0
answers49
viewsTransaction with Entitiframework 6.1.3 and Postgressql does not work correctly
I’m trying to use Entityframework6.Npgsqlcom transaction, however I get an Exception when I call the Dbcontext.Usetransaction method and pass a transaction. Error message (Last Innerexception):…
asp.net-mvc postgresql entity-framework-6 asp.net-web-apiasked 7 years, 6 months ago Maicon Matsubara 11 -
1
votes1
answer468
viewsChange the color of a Webgrid mvc <td> tag
That’s the WebGrid and I need to change the background color of Celula filled in "IN PROCESSING": for Red: CSS <style type="text/css"> .grid { margin: 4px; border-collapse: collapse; width:…
-
1
votes2
answers1052
viewsUnity installation is giving error
I went to install Unity for DI and the Nuget is giving an error, I did not understand, it seems to me that it points to the Newtonsoft, see the error below: Install-Package : An error occurred while…
-
1
votes0
answers268
viewsHow to hide URL parameters on an ASP.NET MVC 4 site
I have a question, studying the competition, I realized that when you click an image within the search result, or they pass a parameter to the Viewthus: So far so good, I can do, but I don’t think…
-
1
votes0
answers255
viewsYou doubt about Ubmit and jquery?
I am developing an application in Asp.Net MVC and I am having a problem that I am not able to solve. I have a form with 2 buttons submit, and when I do the submit I want to get the name of the…
-
1
votes3
answers99
viewsProblems with View Model Implementation
I’m trying to use the concept of View Model Pattern, but when I’m implementing the compiler is showing a conversion error. Below follows the approach I used: Structure of the viewmodel public class…
-
1
votes1
answer294
viewsDisplay Name with Razor
I have this case in my project? public enum TipoValorCalculoComissao { [Display(Name = "Percentual")] Percentual = 1, [Display(Name = "Valor")] Valor = 2 } And I would like to put these values in a…
-
1
votes1
answer1494
viewsHow to make an ASP.NET Core MVC application for Portuguese?
I would like to be able to make an application in Portuguese. I was already doing this with ASP.NET MVC 5 in a super simple way through a Nuget installation. But I did not find anything similar for…
-
1
votes1
answer920
viewsSave an HTML - possibly dangerous value Request.Form
I have a Textareafor that receives an HTML content, when trying to record I have an error, I added in web.config the pages validateRequest="false" I’ve tested the common text Insert and it works,…
-
1
votes2
answers281
viewsSend data to an Actionresult from a Controller other than the current one
How to make a post sending data to a ActionResult of a Controller different from the current ? Example: I have a link called lnkEnviarDados and I need to post on the page sending the contents of the…
-
1
votes1
answer143
viewsValidation of the repeated registration
I have a class called Matricula. She gets a record of Aluno and of Serie. I need to do a validation, where if the student is already enrolled in a registered series, the page presents a message…
-
1
votes1
answer20
viewsVariable content is not displayed in the View
Instead of displaying the value of item.Endereco in Webgrid what is displayed is a text @item.Endereco.Length > 0 ? item.Endereco.Substring(0, item.Endereco.Length - 3) item: item.. In my current…
-
1
votes1
answer5846
viewsScroll through all rows of an Html table and hide if any column 5 is empty
I have no advanced knowledge with jquery and need to go through all lines of an HTML table and hide the Line entire case the column from of the number 5 (JUS) be empty and update the sequence…
-
1
votes1
answer347
viewsImprove performance when generating excel spreadsheet
I’m using this generated NPOI to create excel spreadsheets and am facing the following problem: The generated spreadsheet has 300 lines and takes 1 minute to be generated and sometimes error…
-
1
votes1
answer285
viewsMigrating from Webforms to MVC, what is the best way to store and manipulate a logged-in user’s data?
For years I worked with c# systems in Webforms, however, by necessity I migrated my development goal to mobile applications with Xamarin and standards MVVM. Now in parallel I am developing again WEB…
-
1
votes2
answers901
viewsHow not to allow the user to access the previous login/registration page after logging in or registering
I am developing an ASP.NET application and when the user logs in and clicks on the browser button to go back he can access the login/registration page, even if I check the logged-in user’s key on…
-
1
votes3
answers314
viewsJquery function does not find the Controller when I go up to the server
During development the function below finds the Control and makes the request correctly, but after publishing on the server the function no longer finds the Controller: During the development I have…
-
1
votes0
answers462
viewsHow can I use two models in the same view?
I have a View that has a dropdownlist and a text box. This dropdownlist is returning your items from a model. After filling these two objects, I make a request that will bring some results that I…
-
1
votes1
answer52
viewsHow to return warning in a View if there is no data to display?
I created the code below that generates a list. It checks whether the list contains any data saved in it or not. If you have data, returns a View with the list inside, if you have no data, returns…
-
1
votes0
answers66
viewsType type="email" field despises Validationmessagefor Asp.net mvc?
When you use this kind of field he despises ValidationMessageFor? In class [Required(ErrorMessage = "Informe o seu login.")] [DataType(DataType.EmailAddress, ErrorMessage = "Por favor insira ...")]…
-
1
votes0
answers41
viewsGenerate grid with multiple records
Good morning, I need to do a grid where I need to say exactly the value of each row of it based on a column of a table in the bank, I need help because I have never done something like this. It is…
-
1
votes1
answer305
viewsParameters named in - Asp.net url
I have a problem with automatic url generation next to Asp.NET I have the following code: [RoutePrefix("c")] [Route("{action=Index}")] public class ConteudoController : BaseController {…
-
1
votes0
answers244
viewsValidateantiforgerytoken + Back button
Good morning. I have a login form on a web page using MVC 5, I am using the [Validateantiforgerytoken] function to validate the forms for security reasons. The page logs in correctly, but when you…
-
1
votes3
answers4669
viewsConsuming Web Service with Login and Password
I received these guidelines to access and consume the list methodProducts of a Webservice: Standard form of authentication of Java application webservices for entities and associates The client must…
-
1
votes1
answer588
viewsEntity Framework Relationship Error
I am developing a test project that I intend to include in my TCC, but I found a problem when relating two entities to create the Tablas in the database with the Entity Framework. Are they 'Post'…
-
1
votes1
answer431
viewsKendo Textboxfor allow only numbers in . NET
I don’t want to allow the user to enter characters in my field Textboxfor, and if so, I want to display a message that the field should contain only numbers. My code is below.…
-
1
votes0
answers173
views(ASP MVC) Glyphicons Bootstrap does not work in Firefox
I have an ASP MVC 5 application where I use the Bootstrap that comes along, however, both in debug and in publishing, the Bootstrap icons (glyphicons) are not being loaded, see image: I am using the…
asp.net-mvc bootstrap-3 firefox bootstrap-glyphiconsasked 7 years, 4 months ago Guilherme Golfetto 743 -
1
votes1
answer265
viewsInfinite Menu with recursive function
I’d like to know how to create a recursive interface. I have a set of menus, these menus are parents having children and so on, not existing a maximum number of children. I would like to find a…
-
1
votes1
answer102
viewsProblems while recovering data from BD with Entity 6.1.3 and Web API
I did a test project, called quotation to use the Web API and Entity. Well, I went to my web.config and created my connection string like this: <add name="CotacaoContext" connectionString="Data…
-
1
votes0
answers87
viewsCreating Azure Cosmos DB Collections
Well I was creating a Poc with Generic Interface for handling my data, but I had difficulties to do with Webapi MVC, I did with good old MVC. But for the whole JSON issue, I think I lose a lot if I…
-
1
votes0
answers43
viewsError in View message
I have that code: $.ajax({ url: "/InternalAuditRecord/SaveInternalAuditRecord", type: "post", data:…
-
1
votes2
answers4211
viewsPassing parameter through URL
how do you pass a parameter to another VIEW screen, without the user seeing it in the URL? For example : I have a query screen that the user clicks on the table and is redirected to another screen,…
-
1
votes0
answers89
viewsInsert user via Identity ASP.NET
I am developing an application in ASP.NET where I am using Identity. I have some initial functions from a External API that are called when I am validating the Token of this API via controller. The…
-
1
votes2
answers733
viewsASP.NET MVC Entity - Scaffolding for more than one table simultaneously
I saw that an ASP.NET MVC project with C# has 2 magic tools that are Entityframework and Scaffolding. With them it is possible in a few minutes to have all the features of registration with in the…
-
1
votes0
answers267
viewsHow to change the default folder of an ASP . NET Core application?
I am trying to set up an ASP site . NET Core, to host an Angularjs application. The structure my "index" page is using is: /wwwroot/app/index.html I tried some settings in the Startup.Cs file, like…
-
1
votes2
answers88
viewsEmail Differentiating two environments in the system
Personal I need a help, in my system I have two Environments, one of production and the other of homologation. So in my system, I have a part that sends email, to the user. Could someone help me so…
-
1
votes1
answer61
viewsHow to organize the Theme Directory
I have a question about how to split the files CSS and Javascript in my project directory ASP.NET I got the theme METRONIC, the theme directory has a folder where all the files are css and js call…
-
1
votes2
answers213
viewshelp for View to pass multiple lines to a Controller
Guys, I have a simple model for studies. There are 3 tables, Person, Allergy and Personal Allergy. Since a person can have several allergies. My role model is: public partial class Pessoa {…
-
1
votes1
answer61
viewsReceiving Request in View
Hello! I am trying to receive a filter parameter in my view with the following code on Controller: public ActionResult Cadastro(int? idParente) { var tab_Documentos_Parente =…
-
1
votes2
answers371
viewsSending email C# The remote name could not be resolved
I’m testing the email sending of the application for a password recovery option,I tested several ways, including email from another domain and hosting and everything works well, tested with gmail…
-
1
votes0
answers458
viewsHow to create a txt file and download?
I use the code below to generate a txt file in Windows Forms: StreamWriter file = new StreamWriter("D:\teste.txt"); List<Producao> bpa = ProducaoDados.BuscarBPAC(txtCompetencia.Text); foreach…
asp.net-mvcasked 7 years, 3 months ago Italo Rodrigo 4,344 -
1
votes1
answer503
viewsASP.NET MVC + Entity - How to map new tables
Good morning, I have a project using ASP.MVC + EF and mapped about 20 tables using the VS wizard (creating the ADO.NET Entity Data Model, selecting the database and the tables I want), but now I…
-
1
votes0
answers76
viewsCenter Textboxfor with column icon
I’m trying to create a centralized login form, but with the code below the input text is aligned to the left and the icon to the right: <div class="form-group"> <div class="row"> <div…
-
1
votes1
answer410
viewsDisplay saved image in database and allow user to change image
I am retrieving the database information and checking whether the GIF and Image fields are null or not to display to the user the best option in View Edit. Anyway, follow the code where I do this…
-
1
votes1
answer1338
viewsAsynchronous module or handler completed while asynchronous operation was pending
I am trying to send an email asynchronously, without waiting for the return. However when I do not use the await I get an exception in return for action. Code: public Task MissaoAvaliada(string…
-
1
votes1
answer448
viewsHow do I profile security with Asp.Net MVC?
I am creating a system using Asp.Net MVC and before I start I need to do profile-based security. I’ll have multiple profiles each with an access option. For example: Admin Profile (access all),…
-
1
votes1
answer394
viewsHow to send parameter to Actionresult?
I have the ActionResult Login that validates my user and saves the data in a Session, if everything goes ok, redirects to the ActionResult BPAC: [HttpPost] public ActionResult Login(string pUsuario,…
asp.net-mvcasked 7 years, 2 months ago Italo Rodrigo 4,344 -
1
votes1
answer869
viewsPass an object to Modal
I have a Foreach in a table, I need as soon as the user clicks on a row, open a modal with the object data contained in that row. The Foreach: @foreach (PedidoModel pedido in @Model.Entidades) {…