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
-
0
votes2
answers585
viewsJsonresult display Displayname from an Enum
I’m having a problem returning the Displayname of an Enum I have the following Enum public enum TipoPessoa { [Description("Pessoa Fisica")] [Display(Name = "Pessoa Fisica")] [JsonProperty("Pessoa…
-
0
votes1
answer2783
viewsHow to add an inputmask email mask to an input field within a table?
How to add an email mask inputmask in a field input within a table html dynamically created? Example: <tr role="row" data-row-index="0"> <td class="text-center"> <input…
-
0
votes0
answers162
viewsAdd Font to Bundleconfig
I’m looking to put a source who is in a link, tried these two ways and none works, simply my page does not load the source. It follows codes: First form: var linkFont =…
-
0
votes0
answers445
viewsView with filters and grid in Asp.Net MVC
I am new to Asp.Net MVC and need to create a View similar to the following image: In the "Filters" frame the user will select the filters to be used in the query and click on the "Filter" button to…
-
0
votes1
answer44
viewsFilter error in different password fields in the same view
I have a VIEW called Change Password and in it I have a Current Password field, a New password field and a New Password Confirmation field. The three fields pass through the same control filter for…
asp.net-mvcasked 7 years, 1 month ago Cléo Sousa 123 -
0
votes1
answer296
viewsI cannot use the Date field. I am using Asp.Net C# MVC
function set_dados_form(dados) { $('#id_cadastro').val(dados.Id); $('#txt_Nome').val(dados.Nome), $('#txt_Telefone').val(dados.Telefone), $('#txt_Endereco').val(dados.Endereco),…
-
0
votes0
answers285
viewsCall Controller Search Action
I have an action in my controller that calls a service that does a search using stored procedure and returns a list to me. I made the form in the View to call this Action, only it’s not calling…
-
0
votes1
answer233
viewsUploading files (images) in ASP.net does not send the image
I can’t send images (banners) in my Asp.net application My controller : [HttpPost] [ValidateAntiForgeryToken] [ValidateInput(false)] public ActionResult Save([Bind(Include =…
-
0
votes2
answers8176
viewsCPF Mask and Date of Birth Asp.net MVC
My question is this: I created a simple CRUD and I want to use mask in the fields date of birth, CPF and phone. Function code create of the CRUD: @model WebApplication1.Models.Bdfinal @{…
-
0
votes2
answers963
viewsCould someone explain to me why this error is returning to me? (Uncaught Referenceerror: Response is not defined)
I have two models (classes) Class Member namespace GerenciaIgreja.Models { public class Membro { public Membro() { DataCadastro = DateTime.Now; } public int Id { get; set; } public DateTime…
-
0
votes2
answers470
viewsC# MVC solution does not run Javascript on IIS
I have a C# solution where I use MVC. I have a View for product items. In this view I have a Droplist as specified below: Drop List <div class="form-group"> @Html.LabelFor(model =>…
-
0
votes1
answer217
viewsASP.NET MVC Actionlink outside the area
I’m having a hard time making a simple feature. I have an area called "project": The goal is simple: I need to create an Html.Actionlink that generates a link to return the home page that is OUTSIDE…
asp.net-mvcasked 7 years, 1 month ago Luiz Santos 3,162 -
0
votes1
answer649
viewsTo change the column name of a table using the Add-Migration Code First Asp.Net MVC command
I have a table already created and I want to change the column name without them being deleted, because it already has a lot of information. I did the procedure of renaming the property Street to…
-
0
votes1
answer573
viewsASP . NET MVC - Using a @Html.Dropdownlist for two Actionresult
Hello, I’m developing an application with ASP . NET MVC and using the Epplus API for XLS export. In the View of an equipment report I have two @Html.Dropdownlist with Type of Equipment and Status…
-
0
votes1
answer587
viewsDatetime field problem in POST ASP.NET MVC
Field Datetime getting 01/01/0001 00:00:00, and not with the date before the POST. Datatime Field with Dataannotations (MODEL) [Required(ErrorMessage = "Campo Data de cadastro é obrigatório.")]…
-
0
votes0
answers284
viewsHow to delete registry with modal?
I have been dealing with ASP.NET for some time and I have come across a problem that I cannot solve. The idea is only to open a modal window, click on the confirmation and delete a record. The idea…
-
0
votes1
answer164
viewsHow to include class in Asp.Net MVC search
I developed a Code First system in Asp.Net MVC In this development I created a relationship far too and I want to do a research that includes this relationships in a survey, below I describe better…
-
0
votes1
answer27
viewsField Textbox search Company and Category and Field Dropdownlist Cities search Cities how to do Includes in SQL - Asp.Net MVC
I developed a Code First Asp.Net MVC In this development I created a relationship very much and I want to do a research that includes this relationships in a research, below I describe better in…
asp.net-mvcasked 7 years ago Cyberlacs 935 -
0
votes1
answer36
viewsDropdownlist Error System.Nullreferenceexception' in VB
I need to create a function to introduce a new defect, which is associated with one or several processes (for now I haven’t figured out how to select several), but I want the processes to appear in…
-
0
votes1
answer55
viewsDropdownlist with multi Selected
I have a table of defects and a table of processes, and a defect can have one or several processes. For now I have a dropdownlist for a defect, a process, that changes need to do to be able to…
-
0
votes1
answer769
viewsRun Action Post by Jquery ASP.NET MVC
Would you like to delete a record in a button click by Jquery, what’s the best way to do it ? The way I did it’s not working. Action I want to call by Jquery // POST: Pais/Delete/5 [HttpPost,…
-
0
votes0
answers151
viewsASP.MVC ENTITY Code First (odd problem)
I do not know if I am doing something wrong (probably yes). But EF is persisting the data in a BD and in a table that it creates alone. I’ve repeated this step-by-step twice and the result is the…
-
0
votes1
answer117
viewsHow to load Textboxfor after onchange of a Dropdownlistfor?
How can I load a Textboxfor after choosing a Dropdownlistfor element? I load the Dropdownlistfor with a list and from that list I want to filter an object to load the balance according to the…
-
0
votes0
answers131
viewsAuto complete does not work Asp.net mvc
I have a table in the database called Disciplines, and I have a field search in my Index that if I type a letter"A" should suggest "Analysis and development" that’s an example, but it doesn’t work,…
-
0
votes0
answers25
viewsCreated object id does not appear to be available in form
I’m using Angular with Typescript and Asp.Net MVC. I create an object and the MVC controller returns the object to me. I’m taking this object in Typescript and automatically the object ID goes to…
-
0
votes0
answers477
viewsHow to get User’s location - City State
I wonder how do I get user location so that I can make my systems automatically select the city of Dropdownlist City. Through a blog the author teaches how to make this development that I even tried…
-
0
votes1
answer40
viewsReal type fields in bank with problems loading Model
About 3 or 4 months ago I had this same problem, which after I remade all my Model, solved it. And now it’s back to the same problem. Before it was with the float and now with the guy Royal. In my…
-
0
votes0
answers63
viewsThe required anti-forgery cookie "__Requestverificationtoken" is not present
I have a project that is on my server iis and is working on most machines, but in some of them the message is received: The required anti-forgery cookie "__RequestVerificationToken" is not present.…
asp.net-mvcasked 7 years ago Ichihara 121 -
0
votes1
answer171
viewsProblem has no key defined. Define the key for this Entitytype
Tested having problem with relation between Department and Employee tables This returns 2 error: -"Entitytype 'Funcionario' has no key defined. Define the key for this Entitytype." -Employees' is…
-
0
votes1
answer380
viewsHow do I hide or clear the url when I get Asp.net mvc?
I wanted to know how to clean or hide data that I pass through a URL to a webapi so that the data n become apparent and do not disturb my routes.. following example:…
-
0
votes1
answer881
viewsHow to assign the value of a Tempdata["Test"] or Viewbag.Id to an html input?
I wanted to know how to take the value of my variable tempData and put in an html input, in value maybe... someone could help me? Code below: <div class="container-fluid"> <form…
-
0
votes1
answer540
viewsLosing Session after Request
Good guys, I have a problem that so far could not solve. It only starts to occur after a ajax request, in which I submit a document and return to url in a json, to be caught in the javascript, be…
-
0
votes2
answers94
viewsConfiguring Angulasjs Routes with ASP.NET MVC
I’m having trouble routing Angularjs with Asp.net mvc. I set up my routing in the app.js and when I click on my links the pages are not being redirected correctly, the only page that appears…
-
0
votes1
answer563
viewsHow to pass bidirectional parameters to an Angularjs directive
I need the attribute parameterID="{{autor.ID}} which in the Directive is parameterID: '@' be updated as soon as it is changed, that is, I need the bind to be bideretional, I saw in several places…
asp.net-mvc angularjs asp.net angularjs-directives bindingasked 6 years, 11 months ago Nicola Bogar 1,149 -
0
votes1
answer225
viewsReturn of incorrect AJAX Success
I am using Jquery AJAX in my ASP.NET MVC application and I am having a somewhat strange problem. When performing an AJAX request, instead of retouching the content I want to load (a new ".cshtml"…
-
0
votes1
answer879
viewsHttpwebrequest Asp.net returning 400 error
I’m making an appointment at a api to receive a token access, using the Postman, the options Body and Raw, passing the access data in the body, everything works fine, but in my example I have the…
-
0
votes1
answer124
viewsRecover Parameter Filled in Actionresult
I have a problem that I’ve tried many ways to solve and nothing. When loading the page the page is populated in a table a list, but when it is submitted the template is null, but if you consult the…
-
0
votes1
answer24
viewsauthentication with Formsauthenticationticket
I need to make the persistence of inclusions, changes and exclusions that users make on the system, each drive that the user only sees, so I created a Id on the tables of my BD to know which user is…
-
0
votes1
answer250
viewsMVC Bundle altering css content - Font Awesome
I have a problem with Bundle ASP.NET MVC. When I run the local application, the Fontawesome icons are rendered perfectly. Even when I enable the Bundle local. However, when I publish the application…
-
0
votes1
answer122
viewsMetatag Description - Special characters - Influence on SEO
My metatag description is composed of a text, which had accents. I create it in mine Controller MVC and sending to view via viewbag. However, in my html text (via display page source code) is…
-
0
votes2
answers438
viewsApi with Item Array does not receive the posted data
I have an Api that receives the posted data as it shows the image, it turns out the data is coming empty, I appreciate the help.…
-
0
votes1
answer25
viewsCondition on a list
I have a program that inserts information into a CSV file. And I wanted to check if there is data in the variable if it does not show a message that there is no data entered in the file. var csv =…
-
0
votes0
answers50
viewsWrong binding in <select> ASP.NET MVC <option>
When I give a post in the form for the Controller, the Binding in asp-for="VehiclePlate" picks up the value of option of select (@vehicle.Category). However, I want to catch the text of option of…
-
0
votes1
answer89
viewsAdminlte: jQuery Collapse
I am trying to use the "box Collapse" of the Adminlte template (figure below), but when rendering dynamically it does not expand by clicking on the '+'. I’m using the code below in a Partialview. I…
-
0
votes1
answer27
viewsSave the form so that when returning an error it does not erase the inputs
I’m making a registration system, when the data is correct he saves in the bank in a good, when it gives error it returns where it is wrong but it erases everything that has been filled or is not…
-
0
votes1
answer271
viewsRedirection with parameters
I have the following method: public ActionResult exemplo() Returning: int act = (int)TasksTypeEnum.CARGA; return RedirectToAction("Index", new { q = study.Id, msg = 1, action = act }); The page…
-
0
votes1
answer517
viewsPass data to viewbag from controller to view using Chart.JS
I am trying to pass the data from a list to a viewbag, but it is not returning correctly in the view. My model and control: public class DataPoint { public String nome = null; public double y = 0;…
-
0
votes0
answers175
viewsReturn Image (Blob from Database)
I am unable to return the images of a controller. Below I explain all the encoding: I created a controller, and a view for this controller that returns the image that is in an Oracle blob field. It…
-
0
votes1
answer478
views"Filter" options from a Dropdownlist based on a selected option from another Dropdownlist
Greetings friends of Stack Overflow! I’m having a cruel doubt in Javascript/Jquery that is consuming me more time than I would like (heh!) - I would like to filter one Dropdownlist based on the…
-
0
votes1
answer376
viewsError adding view in visual studio
Hello, I’m starting in Asp.net mvc and I’m having this problem when adding a view, would anyone know what this error is about? Error: There was an error running the Selected code Generator:…