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
votes1
answer116
viewsHow to debug an external C# MVC application
I wonder if there is a way to debug a C# MVC application externally, I tried to use IIS Express, but without success, has anyone ever been through this or better, can anyone help me do that? Thank…
-
0
votes0
answers123
viewsSession is not null but not logged in
I am trying to authenticate a page so that only people who are logged in can access a page. I am using this code. if (Session["user"] == null) RedirectToAction("Login", "Usuario"); But even not…
asp.net-mvcasked 9 years ago user31040 -
0
votes1
answer857
viewsError sending data to View
Query to bring users. public IEnumerable PopulaTabelaUsuario() { var banco = new DbBancoContext(); var listaUsuarios = (from l in banco.USUARIOS_PROCESSO select new{ l.ID_USUARIO, l.NOME_USUARIO…
-
0
votes1
answer183
viewsDisplay the full list of tables on an Oracle connection with Entity
As I do in a connection to the Oracle database, show all tables. made a connection and I have over 500 tables in the bank and only shows 74, that the three I need to mount the POC that I’m doing,…
-
0
votes1
answer201
viewsASP.NET Form MVC 5 cannot access Model properties
I am starting at ASP.NET MVC, following tutorials and handouts on the internet I created a study project and I have some doubts. Well, first I’ll create a class structure to follow: > Acesso…
-
0
votes2
answers94
viewsHow to obtain data entered in a form not yet recorded?
Hello, In an application using the MVC, how do I get the data typed by the user in a form, and before recording in the database, I return a view with the data entered for the user to check and only…
-
0
votes0
answers57
viewsHow to get a piece of the Asp.net URL mvc5
I have the following URL: http://localhost:59278/video/categoria/desenho I’m trying to use the Url.Action to mount a URL that is based on the value of the current URL. I need to take the amount…
-
0
votes2
answers745
viewsField saves only date and part of time is "zeroed"
I have this part of code in my view. <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data…
-
0
votes3
answers972
viewsIndependent Project Injection of Dependencies Ninject
Hello! I’m using the DDD type architecture to do a project, in it I have the Crosscutting layer, and in this layer I thought of adding a class library project with Ninject so that it does not stay…
asp.net-mvcasked 10 years ago Kevin 470 -
0
votes3
answers755
viewsCan you click on a <TD> and get the value of another <TD> Hide?
One with 4 , being an Hide. Is there any way I can click on any and take the value of this Hide and send it to my controller? That way I get the value of the is being clicked.…
-
0
votes1
answer634
viewsMethodology and Documentation for ASP.NET MVC Projects
In the company where I work I have always been free to develop the requested applications. I always worked in a unique way despite having a co-worker because, we both developed separate projects.…
-
0
votes1
answer61
viewsList string in 2 MVC tables
I have 3 models: Pessoa, Catequizando and Inscricao. I intend to make a query that returns the name of the person where CatequizandoID = PessoaID that will appear in a dropdown view CriarInscricao I…
-
0
votes1
answer292
viewsSelect in two tables
Ban.cs public partial class Ban { public int IdBan { get; set; } public System.DateTime DataBan { get; set; } public System.DateTime DataDesban { get; set; } public int Usuario_IdUsuario { get; set;…
-
0
votes1
answer90
viewsProperty is coming as Undefined
In the controller I have a lambda that returns me three fields. When I run in jquery it tells me that the property is Undefined. I think it’s the way I try to take the amount. Can someone give me a…
-
0
votes2
answers52
viewsPrevent the user from voting in the same Post
I created a voting system, where users can give like/dislike in the chapters of books posted on the site. Follow my action: public ActionResult Like(int id) { int iduser =…
-
0
votes1
answer169
viewsHow do I use the web api for controllers and MVC for view(Front-end)?
hello, my problem is this, I’m doing an internship test and the guy asked to do an Asp.net project with mvc only for views, and web api only for controllers and another layer for the bank only that…
-
0
votes1
answer277
viewsFrameworks for use of Masks in ASP.NET MVC
In the case of masked fields (for example, CNPJ) and/or date, which framework UI free would be more recommended? Javascript or; jQuery or; Kendo or; Angularjs or; I don’t know what else. I do not…
-
0
votes1
answer85
viewsProblem with AJAX
I am developing a site in ASP.NET MVC, I wanted that when I changed screen only be updated my div .ESTRUTURA here is the code: Javascript: function loadPage(page) { $.ajax({ type: 'GET', url: page,…
-
0
votes1
answer728
viewsUpdate
How do I update a partialview (Asp .net) after I select some parent information, for example: I have a list of bills and a partialview next door to show you the items in that note. When selecting…
-
0
votes1
answer485
viewsHow to call the printer on a page made in ASP.NET MVC?
I would like to call the printer even if the page is being accessed by mobile. <div class="container droppedHover"> <div class="row"> <div class="span6"> <button class="btn…
-
0
votes1
answer711
viewsWrite information in the browser console via the . NET
I need to demonstrate information on browser the classic console.log Javascript, only that I would like to do this on browser with . Net and not on output Visual Studio because I believe that Azure…
-
0
votes2
answers627
viewsHow to save an attribute to image
I need to save an image and say I have something like: namespace Projeto.Models { public class Usuario { public int UserId { get; set; } public String Nome { get; set; } public ? Foto { get; set; }…
-
0
votes1
answer1056
viewsEntity Framework DDD Generic Infrarepository
How to do JOIN via lambda in the generic repository. I’m following the DDD architecture model. Example: public class BaseRepository<T> : IRepositoryBase<T> where T : class { private…
-
0
votes1
answer64
viewsDoubt in the publication of site done in Asp.net mvc
After posting to a local folder on the computer, uploading the files online is got me the error:…
asp.net-mvcasked 8 years, 10 months ago Harry 3,805 -
0
votes0
answers44
viewsHtml.Dropdownlistfor Add Image at a certain position
Good afternoon, guys. I’m looking to add an image in the second position of the Dropdownlist, would anyone know how to do that? I tried to add one using with the append and it didn’t work.
asp.net-mvcasked 8 years, 10 months ago Zica 469 -
0
votes0
answers109
viewsError 403 Forbidden You do not have permission to access this Document Asp.net
After climbing the site done in Asp.net mvc, while trying to access , I have this error, there is some necessary configuration to be made?…
-
0
votes2
answers221
viewsDropdownlist in views Asp.net mvc of the validation error
In a view razor of asp.net mvc I have a dropdownlist with the following code: @Html.DropDownListFor(model => model.Banco, (SelectList) ViewBag.Banco, new {@class = "form-control"}) Even selecting…
-
0
votes1
answer178
viewsError when publishing Site
The system was working very well, I made some changes and after I climbed to the server this error occurs, can anyone tell me what it would be ? The system is MVC with VS 2013. Note: I went back to…
-
0
votes1
answer402
viewsError saving data from a session in the database
I am developing a sales system. Follow the link: Save Request - ASP.NET MVC However when finalizing the purchase and saving the data in the bank, I get the following error: "An Entity Object cannot…
-
0
votes1
answer139
viewsController get checkbox list from a view
I have a Partialview where I upload a list of my object and put a checkbox so the user can mark which list item he wants to save, so I don’t know how the controller can "know" which check in is…
-
0
votes1
answer208
viewsProblem rescuing References from a query in Nhibernate Hasmany
I’m using Nhibernate with Webapi have 2 entities Profile & Personal Personal Login may have N Profile and Profile 1 Person Login. However, when I go to the Personal webservicelogin the Profile…
c# asp.net-mvc asp.net-web-api nhibernate fluent-nhibernateasked 9 years, 11 months ago Daniel Machado 1 -
0
votes3
answers392
viewsAsp Net MVC pass connection string to access layer
I am with a project that is divided in layers, BLL DAL and UI, in the UI is my MVC project, however arose the need that in the login screen the user choose the connection string, how can I pass this…
asp.net-mvcasked 8 years, 9 months ago henriquedpereira 4,415 -
0
votes1
answer110
viewsDropdown Asp.net MVC
I would like to do two dropdown in a view, I don’t want to dropdown through the model in the view because each dropdown is a different class. I made the dropdowns with angular.js only that I failed…
-
0
votes1
answer45
viewsDoubts of systems architecture
Good afternoon, I have to change the company’s system here, and it’s gonna get more complex. We are a builder every work we work is previously budgeted, when the buyer will add an order, the system…
-
0
votes1
answer630
viewsUsage Tempdata ASP MVC
What I’ve been researching (here), I can save a data list in a Tempdata created in one function, to use in another function in my Controller. All right, I’m trying to do just that, I’m just not…
-
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
votes1
answer279
viewsUse Session as Query Parameter
Hello, I have a method to login the system, soon after I need the user to select an option in a dropdown and save this value in a Session. Now I need to put the stored value in Session, inside a…
asp.net-mvcasked 9 years, 10 months ago Randrade 21,612 -
0
votes1
answer114
viewsFormat query to send to Viewbag
I did a query in Latin, but the result was not as expected, it seems simple the problem but I can not solve. Result on the label: { Year = 2016/2017 } Expected result on label: 2016/2017 Controller:…
-
0
votes1
answer1229
viewsError hiding menu based on user permissions
Hello, I had a method to control access to menus, based on permissions. But the nothing stopped working and I get the error: "Unable to link at runtime to a null reference" I don’t know what was…
asp.net-mvcasked 9 years, 10 months ago Randrade 21,612 -
0
votes1
answer54
viewsHow to use AJAX in many Layers?
I’m studying DDD I have an application with 4 layers being them Presentation Applying Domain Infra In the presentation layer I look for data via Ajax No DB, but I have a question about how to do. I…
-
0
votes1
answer27
viewsError in project.json file
I have an error in my project, it appeared after I added Entity Framework to my project! This error persists on line 21 of the file project.json. I’m using Visual Studio 2015. The exact description…
-
0
votes1
answer1909
viewsAsp.NET + Pagseguro
Good morning, I arrived at the moment you need to add the forms of payment. and I want to put Pagseguro. What’s the first step to doing this? Where do I have to implement the pagseguro classes in my…
-
0
votes2
answers71
viewsPrefix (stackify) + Web Api + MVC + EF 5 is not monitoring querys
Good Afternoon. Guys, I’m not being able to use Prefix (stackify) + Web Api + MVC 4 + EF 5, because it is not being able to monitor the querys performed and perform the information return. In the…
-
0
votes1
answer140
viewsWYSIWYG editor with code style
I am creating a website where I will post some code snippets (as if it were a backup of my codes), and for this, I am using ASP.NET MVC. Almost everything is ready, what is missing is a WYSIWYG…
-
0
votes1
answer493
viewsWhat is the best way to generate pdf files via webservice?
I have a Soap webservice and came across the need to generate pdf documents. Has anyone ever worked with generation of many documents via webservice and what technologies have they used? Which…
-
0
votes1
answer991
viewsPick up Ip and Hostname of visitors who fills in contact form
Good afternoon, gentlemen. I have a web application on Asp.net mvc + Angularjs that has a contact form. I would like to know what the ip of the user and his hostname that is filling this…
-
0
votes1
answer143
viewsSeveral "Divs" inside a foreach
I want to put a ranking system with stars like "imdb", but the element only appears once within the cycle. Script: <script> $(document).ready(function () { $(function () {…
-
0
votes0
answers26
viewsValues post in a Listbox without being selected
It is possible to make a Post of the values of a Listbox without them being Selected? My Listbox: @Html.ListBoxFor(m => m.SelectedCatequistas, new MultiSelectList(ViewBag.SelectedCatequistas,…
-
0
votes0
answers65
viewsProblems with routes in ASP . Net MVC
Hello, I have the following route: routes.MapRoute("RelatorioDemonstrativoResultadoExercicio", "downloads/relatorios/Relatorio_DRE_{dataInicio}_{dataTermino}.pdf", new { controller =…
-
0
votes1
answer163
viewsAre the MVC paradigms and Webforms (with code-Behind) mutually exclusive?
My doubt stems from an instructor’s explanation that the MVC standard would apply to the presentation layer, but upon encountering this other question and answers I started to believe that either…