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
answer955
viewsHow to use Url.Action in a Razor Helper?
In an ASP.NET MVC5 project, I created a Helper inside the briefcase App_Code, however, when using the function Url.Action() in my Helper the following build error occurs: CS0103: The name 'Url' does…
-
1
votes1
answer82
viewsDestroy tag javascript
I have an Asp.Net MVC project structured as follows: On the page Home there are several links to others Actions and Controllers, and they return a PartialView that assembles all the content into one…
-
1
votes2
answers499
viewsHow to make the server return a page without the browser request
I have a registration screen that should be validated by various business rules, when the user does Submit I wanted to leave a page with a message for example, "Validating, wait". I tried to do this…
asp.net-mvcasked 10 years, 1 month ago Alan Almeida 633 -
1
votes1
answer2863
viewsFunction $(Document). ready() only executes once
I have an Asp.Net application that has a menu on a main screen that has 2 links, each to a page. When I click on the first link and upload the first page, the function $(document).ready() wheel set…
-
1
votes1
answer156
viewsjQuery calling an action
I am developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is whether I should call Action via jquery to validate the model and…
-
1
votes1
answer1316
viewsUse Database table instead of table created when using Individual Identity Authentication
I created an Asp.net MVC application using Identity and left checked the option for Visual Studio to create individual user authentication for me. Turns out I just found out that it creates a . mdf…
-
1
votes1
answer44
viewsDifficulty with MVC Code Debugging
One of the problems I have had in the studies is the way the code debugging is done in mvc, I can’t find a logic to solve this. OBS: The sample code option is not formatting the code properly. The…
-
1
votes2
answers336
viewsCreation of ASP NET MVC reports
I need to create multiple reports on my system to display the data on the screen and have export options to Excel and PDF, where do I start? there’s some component that helps me with this?…
-
1
votes2
answers583
viewsclick on table and load the information on the screen
This is my table: <div class="col-md-13"> <table data-url="data1.json" data-height="500" data-sort-name="name" data-sort-order="desc" class="table table-striped table-bordered">…
-
1
votes2
answers15582
viewsWhy does the background-image url search for the image inside the Content folder?
I have a CSS like this: #hero { height: 100%; background-image: url("~/img/bg-img.jpg"); background-position: top center; padding: 0; overflow: hidden; } When I rotate, the image does not appear,…
-
1
votes1
answer194
viewsIs it possible to make a basic CRUD in JSON file?
I have the following scenario. I have a news site on ASP.NET MVC that currently when accessing it, all information is taken from the bank. I want to take these requests from Front. I thought I’d…
-
1
votes1
answer805
viewsPopular Dropdownlist and make Insert with the chosen value
In my DB I have 3 tables: - Genero(IdGenero,Genero,Descricao) - Publicação(IdPublicacao, Titulo, Sinopse,IdUsuario) - PublicaçãoGenero(IdPublicacaoGenero,IdPublicacao,IdGenero) This last one makes…
-
1
votes1
answer586
viewsRead an xml file
I’m trying to read an XML file. string pagina =…
-
1
votes1
answer472
viewsFormat mask for Timestamp attribute
I need to display the value of the TIME attribute only HH:mm (hour and minutes). By including the following masks an error occurs: The input character string was not in an incorrect format. I tried…
-
1
votes1
answer344
viewsNinject dependency injection for more than one web project
Hello, in an application I have a MVC web project and a Web API project, in the MVC project I already have the Ninject configured with the dependency injections and I would like to take advantage of…
-
1
votes1
answer32
viewsError using Rsaprotectedconfigurationprovider
I am making an example using Rsaprotectedconfigurationprovider and I generated an error, I am unable to solve the problem. NOTE: correction, the error was solved, I had forgotten a detail, now if…
-
1
votes2
answers1245
viewsTake the value of a <TD> tag by jquery and send to Controller method
How do I take the value of a tag when I double-click it and take that value and move to a method in my controller. Double click function is working. $('#nmUsuario').on("dblclick", '.clique',…
-
1
votes1
answer531
viewsDropdownlist and Listbox - Recovering Values in Editing
In a CMS I own a DropDownList and a ListBox that work regularly in the field of registration, however, do not bring values in the field of editing. View <div> Tipo de Curso<br />…
-
1
votes1
answer538
viewsSeveral methods in the same Apicontroller
I am creating a web Api project and wanted to put a set of methods in the same Controllerapi. But in the methods, I pass a Json object as a parameter. And as their structure looks similar (see…
-
1
votes2
answers166
viewsHow to use Measurestring method?
I have the following code: var font = new Font("Arial", 50); var texto = "Meu texto"; var res = Graphics.MeasureString(texto, font); // Está linha não funciona. When compiling the following error is…
-
1
votes0
answers1138
viewsClient-side validation with Dataannotations only works on localhost
I’ve been doing research for three days and I haven’t seen anything like this anywhere else. Checking if it was some kind of hosting block, I hosted the site on godaddy, and then on Azure to…
-
1
votes2
answers1301
viewsHow to Save and Recover All Sessions of a User
I am developing a system in which I need to recover all users logged in or with active session on the server. Context: When the user logs into the system, in addition to creating the Session, save…
-
1
votes1
answer141
viewscustomize create() in Kendo Toolbar
I need to customize the Create button of Kendo UI Toolbar (the one that creates a new line to add values) so that it creates a new line to each object in an array, which comes from another…
-
1
votes2
answers1972
viewsSending Link Information to a Modal
I am developing using Bootstrap and ASP.NET MVC. I am using a Table where on each line I have the Edit and Delete buttons. I am using the following code: <div class="container"> @foreach (var…
-
1
votes2
answers271
viewsChange Order by Clicking the Tab Key
I’m using bootstrap in a c#project, and when I click the tab key to change the fields the direction is from right to left, and I wanted it to be the other way around, where do I change? Ex: when it…
-
1
votes1
answer482
viewsFill a jquery combobox
See is not popular a combo, I do. The combo is populated, then I need to take the id and show in the combo the text referring to that ID. The ID I have in my table, all that remains is to show the…
-
1
votes1
answer148
viewsActionresult Dynamic Route
I have two Controllers: College and Course public class InstituicaoController : Controller { // GET: Instituicao public ActionResult Index() { return View(); } public ActionResult Instituicao(string…
-
1
votes1
answer191
viewsProblem with select in table with relationship Many to Many
I have the following scenario: public class Pedido { [Key] public int Id { get; set; } public virtual ICollection<ProdutosPedido> ProdutosPedidos { get; set; } public DateTime CreateDate {…
-
1
votes1
answer337
viewswkHtmlToPdf - Header and footer on all pages
I’m trying to generate a "report" using Rotary, but I’m having difficulty to repeat the header and footer on all pages: This is the outline of what I’ve done: Controller using System; using…
-
1
votes1
answer133
viewsRemove "www" from domain by forwarding 301
How do I redirect a www.dominio.com.br for dominio.com.br (www-free)? I’m using Asp.net mvc.
-
1
votes1
answer509
viewsHow to change web.config when running Deploy?
I have an approval and production environment in the cloud but I do Deploy in File System. I have to enter some parameters and change the connectionString for each of these environments. Examples of…
-
1
votes1
answer61
viewsCSS positioning in _Layout.cshtml
I’m having trouble positioning with the @RenderBody(), I am unable to adjust according to the side menu, I would like a solution, thank you. <div class="nav-side-menu"> <div…
asp.net-mvcasked 8 years, 10 months ago Matheus Cavallini 25 -
1
votes1
answer146
viewsFilter search with Checkbox values
For example, the User typed the title of a publication, and marked the generous Action and Adventure, or the user did not type any title, but wants to see all publications that fit these genres. How…
-
1
votes1
answer4974
viewsImplementation of ASP.NET MVC Shopping Cart
I am trying to set up a "simple" selling system, but I have no knowledge in e-commerce. What I want is the following: The user chooses the products he wants, assembles a cart, and finalizes the…
-
1
votes1
answer355
viewsAutomapper and Viewmodel with equal fields
I have a Viewmodel (UsuarioGrupoViewModel) where I will show user and group data in the same View. The problem is that both the User entity and the Group entity have the Name field, how do I handle…
asp.net-mvcasked 8 years, 10 months ago Alexander Leão dos Reis 175 -
1
votes1
answer248
viewsDesign standard or best practices for handling virtual disk files
There are standard or best practices for dealing with upload, storage, file publishing, and access control? Environmental example: I have a system that will need to register Calls and News and in…
-
1
votes1
answer33
viewsEF Code First alter default Initial Catalog
I’m trying to modify the database Padrão of Entity Framework however the Initial Catalog is not being modified.…
asp.net-mvcasked 8 years, 10 months ago Victor Leite 11 -
1
votes1
answer520
viewsLayout does not appear in "_layout.cshtml"
I’m editing the _layout.cshtml file so it can be replicated on the other pages. However, when I run my program it’s like I haven’t made any changes to the layout. What can it be? By the way I’m…
-
1
votes1
answer161
viewsValidation control Errormessage
I got the following model: public class Request : IEntity { public int Id { get; set; } [Required(ErrorMessage = "O Centro de Responsabilidade é obrigatório!")] public string Cadastro_Id { get; set;…
-
1
votes1
answer1435
viewsSave Request - ASP.NET MVC
I want to make a simple Ecommerce on my website based on this question: Implementation of ASP.NET MVC Shopping Cart However, I am doubtful when it comes to doing two things: 1º Save the data in the…
-
1
votes1
answer213
viewsHow do I use the service based database item in Visual Studio 2015?
I am taking an online course of Entity Framework in which the course uses Visual Studio in the 2012 Express version, and I am using Visual Studio Enterprise 2015. And during the course he asks to…
asp.net-mvc entity-framework visual-studio-2015 visual-studio-2012asked 8 years, 9 months ago Leonardo Gustavo Maran 93 -
1
votes1
answer344
viewsIIS Validation Messages - Asp.Net MVC
I published my application on IIS, however, the validation messages are appearing in English. I already installed the Asp.Net MVC package in English in the link…
-
1
votes0
answers114
viewsjquery validation problem
I’m using a form to dynamically fill out list items. I clear form fields when entering list items in the item addition act. Problem: When I perform Ubmit to record, Razor’s help…
-
1
votes1
answer230
viewsaspnetmvc6 cannot update
to testing the visual studo 2015 created a project Asp.net mvc and to want to update it to use the new version 6 beta. but to with an error here How do I fix it? have updated the Entity framework…
-
1
votes1
answer717
viewsC# Entity Framework Invalid Object name 'sys.default_constraints'
In my C# MVC 5 project with Entity Framework together with an SQL Server, among a series of classes, I have a class called ctmdMandados.Cs: public class ctmdMandados { //cadastro dos mandados…
-
1
votes1
answer491
viewsWhat are the free libraries options for ASP.NET MVC PDF generation?
I am currently using the selectpdf library, but it has some restrictions on its free version, I would like to know other options that I can use.
-
1
votes1
answer887
viewsHow to generate a hash for the user password with ASP.NET MVC and . NET 4.5
I am implementing an authentication/user registration functionality with ASP.NET MVC 4.5, but I can’t find anywhere a more correct way to work with passwords in the database, I don’t want to simply…
-
1
votes1
answer2311
viewsDatabase connection using Asp.net MVC
My doubt, maybe it is not somewhat technical, but rather of better concept, usability, or advantages. I have a good experience in developing Asp.net using webforms, and ultimamento I seek to expand…
asp.net-mvcasked 9 years, 10 months ago Erico Souza 2,188 -
1
votes1
answer1111
viewsDifference between Partial Render and Render Action
I would like a help to better understand these types of partial view rendering.
-
1
votes2
answers679
viewsProblems with Modal
In my project I have kind of an image gallery. So far I upload the image and it is displayed on the page without any problem. Only now I need, when clicking on the image, open me a modal with the…