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
votes0
answers666
viewsBundleconfig - No files found on the server
I’m using Kendo UI on a project MVC 4, I made the settings in Budleconfig: bundles.Add(new ScriptBundle("~/bundles/kendo") .Include("~/Scripts/kendo/2013.2.918/kendo.all.min.js")…
-
0
votes1
answer338
viewsCreate a condition within a Linq
I need to make a comparison to set the value within mine select new. I’ll try to explain it better. var tipo= from t in p select new { t.Key, t.Value, }; return Ok(tipo); I wanted to buy if t.key ==…
-
0
votes0
answers181
viewsKnockoutjs and ASP.NET MVC
So I’m starting to take a look at Knockoutjs and it’s all a little dark yet, in the example I’m following, I’m having a mistake that says O objeto não oferece suporte à propriedade ou método 'join'.…
javascript c# asp.net-mvc asp.net-mvc-5 knockoutjsasked 9 years, 8 months ago Pablo Tondolo de Vargas 5,444 -
0
votes1
answer434
viewsReturning selected data to Razor in anonymous object
I have a controller where I look for the birthday kids of the month. But I have more than 1000 birthday girls per month, returning a table with more than 50 attributes of each one, thus making the…
-
0
votes0
answers38
viewsDelete problems in Mysql via MVC 4
I have a problem that I don’t have a clue as to why it’s happening and I can’t fix it either. I have developed a WEB application in MVC 4. I can add and edit new records. But I do not want to delete…
-
0
votes1
answer124
viewsInsertion 1 for many is recording two records in the database
I have the following classes: Usuario, Noticia, Bloco and Editoria. I had a relationship One to Many between the tables Noticia and Editoria, Noticia and Bloco. It works perfectly, by putting the…
-
0
votes1
answer86
viewsReturning list with property of various entities
In my application I have some entities and from some statements of each need to perform a query in the database and display these statements cohesive in a grid. I am working with ASP.Net MVC 4 and…
asp.net-mvcasked 10 years, 4 months ago Marcelo 11 -
0
votes2
answers294
viewsRequest ajax accessing already included scripts
Eae guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control"…
-
0
votes1
answer276
viewsHow to get values to popular a dropdown dynamically
I am developing in . NET MVC and in my application, I have a form that registers people via Ajax. This registered element should appear in a list dropdown, it should appear dynamically without…
-
0
votes1
answer289
viewsHow to map a table without PK with entityframework?
Guys! in my project ,I am having difficulties in mapping a table without Primary key(PK),The application is breaking,when I implement the table in the MAP of my project. public class Configuracoes {…
-
0
votes1
answer17194
viewsUndefined object reference for an instance
"Undefined object reference for an object" instance I have this problem here in my project in Asp.net and I have not been able to move forward with it for a long time, please would you take a look…
-
0
votes1
answer62
viewsModel Create Ienumerable one for many
I have the following doubt. Having the MODEL MVC classes: public class Categoria { public int IdCategoria { get; set; } public string Nome { get; set; } } public class Produto { public int IdProduto…
asp.net-mvcasked 10 years, 3 months ago Ronaldo Miranda 1 -
0
votes1
answer398
viewsHow to work with Database Views on ASP.NET MVC?
Views doesn’t have a primary key so it causes me to make a mistake: Error: The number of Primary key values passed must match number of Primary key values defined on the Entity. How could I avoid…
-
0
votes0
answers174
viewsUpdating the table record dynamically
I have the following scenario: I have a View (type ex.: produto {codigo, descricao, quantidade, qtdeRecebida}) where a table is loaded. In this View, in addition to the table, I still have a textbox…
asp.net-mvcasked 9 years, 6 months ago Reinaldo Guilherme 21 -
0
votes1
answer52
viewsDependency on services
I have a job that closes a back door. Like any input process when registering the note I have the manual registration of each item of the note and when closing the note I need to update the stock of…
-
0
votes1
answer91
viewsMap Routes works only default
I’m having a problem with my project. I have two routes, a "Default" and a test, but I do not know if it is done correctly because it does not work when they put in the url what I put there, works…
-
0
votes3
answers1920
viewsSearch database information by selecting a field
How to select a field and pull the information related to it? For example, I wanted to select a user and when I selected it appears in the fields type Name, Address, Cpf and etc all filled,…
-
0
votes3
answers613
viewsHow popular Dropdownlistfor with information from a foreign key?
I have these two classes and I need to popular a Dropdownlistfor with the information of the classes ModeloVeiculo, this Dropdownlistfor will be made in the create.cshtml of the class Veiculo, I…
-
0
votes1
answer144
viewsJquery - For loop inside a DIV
You guys, good morning. Simple: I’m giving a For a div: <div class="Laço"> <div class="ItemLaco"></div> <div class="ItemLaco"></div> <div…
-
0
votes1
answer663
viewspass actionlink parameters to jquery function
How would I pass parameters from an Actionlink of a grid to a jquery function? This is the Actionlink: gridPortfolio.Column( format: @<text> @Html.ActionLink("Delete", "DeleteData", new {id =…
-
0
votes1
answer354
viewsError 403.14 Forbidden
When I open the page in Asp.net, this error is shown: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. It was working normally. I changed some…
-
0
votes1
answer393
viewsInjection of dependency with Ninject
I’m using Ninject on ASP.Net MVC and trying to implement, but I’m getting a bug: Error Activating Isessionfactory No matching bindings are available, and the type is not self-bindable. Activation…
-
0
votes1
answer83
viewsEntity Framework 1-n
I don’t even know if you’ve been feeling what I’m trying to do. If I try to add a Course to a Flag, that’s fine. But when I try to add a Course list to a Flag, the following error occurs: Additional…
-
0
votes0
answers36
viewsTextbox with Autocomplete
I want to make a textbox show me the names of registered users in the bank while I type. Ex: if I type the letter r, the textbox should show me some options that contain the letter r, but, I’m not…
-
0
votes1
answer112
viewsError display foreign key attribute
I have my classes: public class Bandeira { public int BandeiraID { get; set; } public string Nome { get; set; } public virtual ICollection<Curso> Cursos { get; set; } } public class Curso {…
-
0
votes1
answer127
viewsProblem displaying image
As I display an image recorded in the database, I believe that it is not actually recorded, because I can only see the name/format of the image. In this case, how do I display this image? I looked…
-
0
votes1
answer615
viewsTake Model in View with values from the database
I have that class: public class MontaArvoreAcao { public int IDRuptura { get; set; } public DateTime DataRuptura { get; set; } public int IDMotivo { get; set; } public string Motivo { get; set; }…
-
0
votes1
answer103
viewsDoubt about iis 6 with Asp.net mvc
I have an application developed in Asp.net mvc 5 in framework 4.5. I saw a comment here that iis 6 does not support framework 4.5, only 4.0, does it proceed ? If yes, how do I convert the…
-
0
votes1
answer112
viewsDoubt about Asp.net mvc 5
Framework 4 supports MVC 5 ? Because I have a site that is in mvc 5 and iis 6 is not opening the site, after clicking enter the login screen the page is blank. I saw that iis 6 does not support…
-
0
votes1
answer210
viewsNest <ul> tag in another <ul> tag with foreach
I have this foreach, which I did with your help here at SOPT. I cost to make it work, but it worked. Only I did it with just one knot. What I’m going to need is this. I have a father knot, inside…
-
0
votes1
answer278
viewsGrouping in foreach and view does not work
I created and set a variable to control the following. My LINQ returns 5,000 lines today. This variable, it’s there to avoid repeating the same thing, like. Let’s say Linus gives me 400 ID=1 motif.…
-
0
votes1
answer74
viewsDoubt on how to set the type to return a list
I need to return some lists to my view. I am using Viewdata. But there is a problem, when declaring the variable, I do not know what type to put. I did it in the form below and is giving the…
-
0
votes1
answer55
viewsIdentity field going to Insert
When I make my insert table companies field Empresacodigo (Field Identity) is going on insert, even though his property is like Identity in my application Asp.net. What can I do ? public class…
asp.net-mvcasked 10 years, 2 months ago Otávio Medeiros 65 -
0
votes1
answer241
viewsJavascript and Activex printing
I’m needing to make printing from a web application, I believe I will have to do this with Javascript and also by what I researched maybe I will have to do this with Activex. I’ve tried to use…
-
0
votes1
answer157
viewsFix Table Title
I have a table that is generated using JSON: <div id="divResult" ></div> The script of the JSON: $.getJSON("@Url.Content("~/CadLevVisCont/ProcessaLevantamento")", { nmUF: catUF,…
-
0
votes1
answer1327
viewsHow to view an Alert from the Asp.net mvc controller
How to display a alert or a Response.Write of controller, on screen, to know if you are going through it ?
asp.net-mvcasked 9 years, 3 months ago AndreeH 1,333 -
0
votes1
answer1646
viewsE-commerce with ASP.NET MVC
Does anyone know if there is any course, guide or material that contains what I need to build an Ecommerce with ASP.NET MVC? More specifically the sales system itself, such as implementing a payment…
-
0
votes2
answers179
viewsAuthorize has stopped working
Just follow my codes Login : public ActionResult Login(login login, string returnUrl) { if (ModelState.IsValid) { if (new AllFictionMembershipProvider().ValidateUser(login.email, login.senha)) {…
asp.net-mvcasked 10 years, 1 month ago Ryan Santos 515 -
0
votes1
answer73
viewsMapping Onetomany Nhibernate
Hello, In an application has a class that I need to do a Onetomany mapping, this parent class will be responsible for performing the persisntecia of the daughter class. My question is, I mapped Bag…
-
0
votes1
answer1306
viewsDisplay or Hide Fields for Natural or Legal Persons
I have a form that registers Clients, and has the option of being an Individual or Legal Person, and each one has some different fields. I thought of using a @Html.Radiobutton with the option…
-
0
votes1
answer71
viewsHow do I delete this method
I can’t call the methods: DeleteOnSubmit and also the method: DeleteObject. See below my code and how I delete it. public static void deletaRuptura(int _idmotivo) { RupturaEntities db = new…
-
0
votes2
answers90
viewsExtra information on a user login
My scenario is this:: The user will log into the system. Then a list of items will be displayed and he will choose a. Then I need the system to store the logged in user and the item he chose. I…
-
0
votes1
answer43
viewsRegister Assembly on Asp.net MVC?
How to use Register Assembly in Asp.net mvc ? I need to create a form that is using a reportviewer in mvc, and it already exists in webforms. I will pass it to another project.
asp.net-mvcasked 9 years, 2 months ago AndreeH 1,333 -
0
votes0
answers46
viewsReportviewer design in Asp.net MVC
I have a page where I need to insert only the Reportviewer design into the View and assign the report ready for this Reportviewer How can I do that ?
-
0
votes1
answer1248
viewsHow to retrieve content from a cookie
As I do to retrieve the content of a cookie, this cookie has the ID of the material that will be requested and the amount, I need to recover to enter in the bank. I’ve searched the Internet a lot,…
-
0
votes1
answer66
viewsLinq does not return data. There is data in the table and I return by query
I tried to make a LINQ very similar to my query. This is my query. select * from PDV where tipo_PDV = 'R' and UF = 'DF' and Cidade = 'BRASILIA-DF' This is my LINQ var resultado_rede_descricao =…
-
0
votes0
answers549
viewsAsp.Net Questionnaire
I am creating a system of evaluations, where teachers will feed a database of questions that will later be part of activities that will be made available to students. My question is when to present…
-
0
votes1
answer931
viewsWhere can I find Microsoft.Reporting.Webforms.Reportviewer dll?
Where can I find a dll Microsoft.Reporting.WebForms.ReportViewer ? I need to use in a project and I can’t find it.
-
0
votes0
answers45
viewsSeveral Migrations in the same Bank
We use the same MS SQL database for several applications. I am aware that such action is not recommended but unfortunately it is the method that will have to be applied. Work with code first and…
-
0
votes1
answer535
viewsShow Image in View
I’m trying to adapt an example I’ve been taking here, to be saving the image in the folder, and show both in INDEX and EDIT, but there are some divergences. As follows below my source code, in case…