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
-
3
votes1
answer230
viewsDoes not return value pro javascript
I have a problem that the value that comes from my controller does not return to javascript. I’ll explain what happens: I send requests via ajax to my controller and it is waiting for the return of…
-
3
votes1
answer486
viewsHow to get Json by Ajax in . html?
Suppose I have a file .html I just created in the notepad with a code Ajax where I want to get the data generated by this application. I made a code here, and when I put one breakpoint in the…
-
3
votes1
answer100
viewsDynamic image and SEO behavior system
I did a reading on SEO and understood that the higher the text traffic, you have more content to be indexed by Google. I have an application that is based on images, is practically a…
-
3
votes1
answer282
viewsRelationship between different contextual classes Entity Framework
I have a problem saving an object, due to it having relationship in a different context, I wonder if there is a way to solve this problem.
-
3
votes1
answer205
viewsAsynchronous server responses for AJAX calls
I have an application that at the end of a page loading I make an AJAX request that takes around 20 seconds. After this request my page keeps working normally so that when I try to make another AJAX…
-
3
votes1
answer762
viewsHow to jump line with View Bag?
I have the following code public ActionResult Action1 { TempData["msg"] = "Essa parte primeiro.\n Essa parte na linha de baixo."; return RedirectToAction("Action2"); } public ActionResult Action2 {…
-
3
votes3
answers831
viewsTempdata["Message"] error in Runtime saying the object is null
I started recently with ASP.NET MVC, and as you can see I’m playing in the if instruction, tempData[] and what happens is a following, every time I click inside Else in "View in Page Inspector" it…
-
3
votes2
answers861
viewsDatepicker Asp.Net
I am developing an application and would like to put the date field that when it is clicked it displays a calendar for selection in this style: datapicker, but I don’t know how to.…
-
3
votes3
answers1833
viewsDelete Relate Record using Entity Framework
Good morning. I am working with Entity Framework and I have a problem updating a relational table. For example, I have a product with several categories, in the edition I remove the category x of…
-
3
votes1
answer141
viewsASP.Net MVC application does not connect to the bank
I’m developing a Solution in the object-oriented programming class for the web. Let’s create a stock control system. One of the first "screens" of access, is the login, only at this moment, my…
-
3
votes2
answers1498
viewsEntityframework, Migrations and Mysql. Schema name being misinterpreted. How to resolve?
I have a problem using Migrations with Mysql. When I try to create the first version with Migrations he’s making the schema/name of the bank part of the table name: public partial class Initial :…
-
3
votes1
answer57
viewsWhat are the differences between these Nuget packages?
I use the Javascriptengineswitcher.Msie package in my webapps on Asp.net mvc, I found 2 more Javascriptengineswitcher packages what’s the difference between them what the pros and cons are?…
-
3
votes2
answers247
viewsDoubt about Security, Authentication and Authorization
Hello, I’m having a hard time setting up an architecture in the application security related part. I need only logged in and duly authorized users to have access to certain functions of the…
-
3
votes1
answer171
viewsController Edit - Entering Values
My method responsible for editing is inserting values in the table CONSUL_EnciclopediasCONSUL_Promocoesinstead of editing. Therefore, if I have the options x with id=1 and y id=2 within the course…
-
3
votes1
answer168
viewsMysql.Entity version compatible with Mysql 5.6
What versions of: Mysql.Data Mysql.Data.Entity EPH Compatible with Mysql version 5.6?
-
3
votes3
answers298
viewsHow to use Resources in . js file?
I have a project Asp.Net MVC where I’m wearing Resources, and to use it in my web pages it’s easy! @using projeto.Translations <h3>@Resources.DISPLAY_OLA</h3> The problem is that I have…
-
3
votes3
answers1719
viewsVery slow C# and MVC site
I developed a site in MVC and C#, but after deploying in Gogaddy server I have noticed that the first access is very, but very slow. I practically check if there is a logged in user, if I do not…
-
3
votes1
answer82
viewsBring selected manually filled combo
I’m having difficulty creating a combo of "Enabled" and "Disabled" passing the value of the bank to bring it filled. In my controller, I created the following code: In my View, following code: The…
-
3
votes1
answer68
viewsHow to save Dysicpline?
I have the following problem with my application. The course table is related to the Discipline table, that is, 1 Discipline belongs to several courses, and at the time of registering a course and…
-
3
votes1
answer36
viewsHow to open an external MVC3 application on MVC5?
I have an application in MVC3 and I have to call another application hosted on the same server, this in MVC5. Should I use an ajax? I must make a iframe? So: has a menu that is MVC3 and has to keep…
asp.net-mvcasked 9 years, 3 months ago Mr Anderson 399 -
3
votes2
answers1101
viewsDistinct in the Plains does not work
I did this Illumination on my model: public static List<MontaArvoreAcao> CriarListaArvoreAcao() { RupturaEntities db = new RupturaEntities(); var _listaUnidade = ( from r in db.Ruptura join a…
-
3
votes1
answer1629
viewsError loading Antlr3.Runtime
Today I had a power outage problem and when restarting the computer a complete scan was performed. Apparently generated some errors and I believe that one of them is related to the problem that…
-
3
votes3
answers2918
viewsFormat a string with time
I’m trying to format a string that already has date and time, but this string just gotta get the time I’m trying this way but it doesn’t work: Recovering from Data Base. string dtSolicitacao =…
-
3
votes1
answer151
viewsEntity Framework - N to N, clear list
public class Aluno { public int AlunoID { get; set; } public virtual ICollection<Turma> Turmas { get; set; } } public class Turma { public int TurmaID { get; set; } public virtual…
-
3
votes1
answer49
viewsPrealoder when requesting dowload
I’m making a return of a pdf from a Custom ActionResult response.ContentType = "application/pdf"; response.AddHeader("Content-Disposition", "attachment; filename=teste.pdf"); And I wonder how I…
-
3
votes1
answer2202
viewsHow to implement token to reset password?
I have an Asp.Net MVC project that I created without template (from scratch even). I would like to implement a password recovery function, but I’m not sure where to start. What method is used to…
-
3
votes1
answer762
viewsHow to pass the parameters of a view to two different ASP NET MVC actions
I need to pass two date(ini, end) parameters to two different actions, one to list on the screen, and one to generate a report. The problem that the view created from the action that lists the…
asp.net-mvcasked 9 years, 1 month ago Rodrigo Santos 127 -
3
votes1
answer1161
viewsPermission to create a database denied by the master database
I am trying to migrate the database created automatically by Identity to control user authentication and this error appears: CREATE DATABASE permission denied in database 'master'. My string…
asp.net-mvc sql-server entity-framework asp.net-identityasked 10 years, 1 month ago Sydinho Franco 103 -
3
votes1
answer972
viewsSet main page on IIS
When we deploy to IIS with an MVC 5 application, I need to set the homepage, right? In my case I have the folder Views => Home => Index.cshtml. In my case, I go to Default Document and how do…
-
3
votes1
answer624
viewsReload page with MVC
I made a function in the model and the call in the controller. Then, I go to jquery and the write command in the BD is successfully executed. It turns out, when I finish recording, the screen…
-
3
votes1
answer85
viewsQuestion Area with Time
I am developing an application that should provide an environment where the following functions are executed: Administrator - Cadastra questions - Edits user - View responses - View evidence - I…
-
3
votes1
answer1326
viewsHow to locate an image without informing the absolute path?
How to locate an image without entering the absolute path? Image img = System.Drawing.Image.FromFile("~/Content/images/SemFoto.jpg"); I tried several ways and could not capture the image without…
-
3
votes1
answer1209
viewsHow do I use @Html.Actionlink to create links to a multi-trace route?
I’d like to use @Html.Actionlink to create the following link: http://localhost:59278/video/categoria/new-movies/3 Being that my control is: [Route("video/categoria/new-movies/{page?}")] public…
-
3
votes1
answer1498
viewsAsp.Net MVC Project in Medium-Trust
I have a project on Asp.Net MVC using . NET Framework 4.5, but my host is shared and has a security policy that only allows Medium-Trust (save Locaweb). When publishing the application, even by…
-
3
votes2
answers1086
viewsHow to reference an external library?
I have a project in Asp.Net MVC where I would like to add some new libraries. They are available for download as .dll, but are also available on Manage Nuget Packages. What is the best way to add…
-
3
votes1
answer2730
viewsPass data from an HTML table to the ASP.NET MVC controller
I’m trying to pass data from an HTML table in my view to my Controller.The data in this table are added dynamically. A Modal Bootstrap is opened, where the user informs some data, when clicked the…
-
3
votes1
answer48
viewsDatabase First - MVC
I have always worked with code first and using only one database. However, I need to work with an application with two databases already created. To work with two databases, I created this: Passing…
asp.net-mvcasked 8 years, 11 months ago Rafael Barbosa 2,855 -
3
votes1
answer759
viewsError making order with Secure Paging API
When trying to create the payment, I get the following error. I am using the following package: https://www.nuget.org/packages/Uol.PagSeguro Additional information: For security reasons, the DTD is…
-
3
votes1
answer677
viewsProblem storing decimal values in SQL Server
I have a decimal field (18, 3) and in the application I use a Javascript plugin to format the entered values, so I pass the value so SQL Server 45.000.000.000, when I look at what was registered was…
-
3
votes2
answers202
viewsLayout adjustment with elements that are automatically generated
I’m making a site where one of the pages is responsible for listing user posts in box form. Each box corresponds to a new user post, which is generated by the ASP.NET MVC 4 code with Entity…
-
3
votes1
answer781
viewsUsing the Signalr
Well I’m starting to venture into Signalr. I decided to follow this Tutorial. Good after doing all the steps, when executing the project presents me the following error: Unhandled Exception at line…
-
3
votes1
answer275
viewsImport . csv file to server
I am performing a task to import data from a . csv file to the server. I can already import the file all right on the server side, but each file contains about 25 thousand records and the user is…
-
3
votes2
answers1266
viewsRegex time greater than 00:00
I’m developing a regex validation using the System.ComponentModel.DataAnnotations and RegularExpression from Asp.net mvc C#, in this regex it is necessary to validate unlimited duration time in…
-
3
votes2
answers5016
viewsSession C# how does it work?
What is the lifetime of an ASP.NET MVC Session, and how to find out how to find out the remaining time and how to add more time to Session (if possible)? There is another form of value guard that is…
-
3
votes3
answers241
viewsURL of route being incorrectly mounted
I am with a project in Asp.net mvc 4, using Attributerouting to set up the routes, and I’m checking a strange behavior. When mounting my GET and POST actions in that order: [GET("editar/{id}")]…
-
3
votes2
answers688
viewsSave data to a "Global Viewable"
Hello, I have a Dropdownlist, coming from a Viewbag, and I need to write this value in some kind of "global variable". I researched and saw that the best ways to do this, is to record in a Viewbag…
asp.net-mvcasked 9 years, 10 months ago Randrade 21,612 -
3
votes1
answer128
viewsApplication stopping when there are many users accessing
My application is crashing and I don’t know exactly why. The only thing that repair is that when there are many users accessing, or making requests it happens. When it happens I have to restart the…
-
3
votes3
answers877
viewsAsp.net serving statics files
I have an application in mvc3 (Asp.net 4.0, dotnet 4.0), running at iis8 (but also running at iis 7 and iis 7.5). Inside the application I have a folder called /dados, example…
-
3
votes1
answer690
viewsTemporarily store data in ASP.NET MVC
I need to store some strings temporarily in an ASP.NET MVC application, these strings need to be accessible by server-side application at any time and the application itself will be in charge of…
-
3
votes1
answer477
viewsTurning SQL Code to LINQ
With transforming codes SQL for LINQ? Questions are in the code comments on LINQ: Code SQL: Select CL.NomeDeGuerra as Colaborador, CL2.NomeDeGuerra as Gerente, Concat(C.Codigo,'-',C.NomeFantasia) as…