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
answers207
viewsHow to write text and image together in mysql with Asp.net mvc
I am creating a forum in my application and would like to know how to save image and text together in Mysql, as in the message field there will be a WYSIWYG editor so I will have to record both text…
-
0
votes1
answer2076
viewsUsing two entitades in the same View
I have a table, where I return the vacation records of each employee, and I need to create a page, where the user can request the change of this period. However, the demand requires that the data be…
asp.net-mvcasked 9 years, 9 months ago Randrade 21,612 -
0
votes1
answer55
viewsI created my project, I’ve been editing every day, and recently out of nowhere he failed to recognize an existing namespace
I created my project in Visual Studio 2013, I’ve been editing every day, and recently out of nowhere it failed to recognize an existing namespace. The namespace appears in red with the message "The…
-
0
votes2
answers145
viewsFunction to call other and popular inputs
In my view I have several functions where in my current logic, they work like this: I fill the data previously and I have 4 buttons that I click and they will do some accounts. What happens is that…
-
0
votes1
answer1762
viewsWhat steps to implement SSL/TSL in an ASP.NET MVC application
I am developing an ASP.NET MVC project and would like to know what are the necessary processes to implement TSL/SSL. I’m actually not sure if this is the best place to ask this, yet I imagine you…
-
0
votes0
answers42
viewsHow do you update the dates of a project done in C# Asp.net MVC layers?
When creating a Blanck Solution type project and creating Class Library type projects with in my case, creating 3 projects in addition to the type application (Application, Domain and Repository) i…
-
0
votes1
answer129
viewsDatepicker Jqueryui error in View
In my project . Net MVC, I can’t get results on the Javascript view @using Forte.Rastreador.ViewModels @model SuperViewModel <script src="~/Scripts/jquery-ui-1.8.24.min.js"></script>…
-
0
votes1
answer48
viewsConvert Dictionary to Array
I have a Controller that generates a list of Graphs as you can see below: [EXEMPLO DE DADOS] Pergunta: Estrutura Dados: [1, 3] [2, 5] [3, 1] [4, 0] [5, 10] Pergunta: Organização Dados: [1, 2] [2, 0]…
-
0
votes3
answers394
viewsIs it possible to add string Connection within a class?
I have a project of my own class library where I have my Context, in it I take the SQL connection that is in my web.config. How could I add the SQL connection so it stays inside the DLL? I want to…
-
0
votes0
answers53
viewserror running view Asp.net mvc
When running the project and calling the view is returning me the following error: The view at '~/Views/Produto/List.cshtml' must derive from WebViewPage, or WebViewPage<TModel>. View code:…
-
0
votes0
answers47
viewsJavascript and components fail to respond
I’m having some problems with session times (I assume that’s the problem) in my application. My client says that sometimes the application does not work, namely Javascript’s and components that are…
-
0
votes1
answer230
viewsMore efficient code for making an iTextSharp template in ASP.NET MVC?
I only did a project to generate PDF’s using the iTextSharp library in ASP.NET MVC (C#), however I would like to know which code is most efficient and easy to use to have a template that generates…
-
0
votes2
answers1155
viewsTwo actions in the same View
I have a View where I return the data of a user, and I need to call another view, to save data, through a modal. The problem, is that they are two views of different controllers, so when calling, by…
asp.net-mvcasked 9 years, 9 months ago Randrade 21,612 -
0
votes2
answers738
viewsPaging with Angularjs and Webapi
I need to make a pagination using AngularJS. Well, I made a controller for a popular one Table HTML. This is now working. My next step is to page this table. I picked up an example on the internet,…
-
0
votes0
answers72
viewsExaminations by Angularjs types
Good, I have a problem with my code. I was supposed to get all the tests of a certain type. <div class="box-body" id="teste" ng-app="app" ng-init="chargeData()" ng-controller="FormCtrl">…
-
0
votes1
answer258
viewsASP.NET MVC Integration of accounts with office365 authentication
I have a project in Asp.net MVC 4 and the users registered by the system itself, however the need arose to authenticate them by office365, that is, when accessing office365 the system recognize the…
-
0
votes1
answer266
viewsModelstate.Isvalid in modal registration
I am using a registration form within a modal, however when the condition of the ModelState.IsValid is not satisfied with view is returned. Only instead of returning the same view before the action…
-
0
votes0
answers377
viewsIn which layer turn Domain into DTO
Hello, in an Asp.Net MVC application the architecture has domain entity classes, Dtos and Viewmodels. The transformation of the Viewmodels I do in the controller, so far so good, but in which layer…
-
0
votes1
answer270
viewsHow to remove Essentials Web extension from visual studio 2015?
I added this extension in Visual Studio 2015 to test, but it disables all native commands of Visual Studio, I wanted to remove this to never install again.…
-
0
votes2
answers939
viewsHow to get the value of an @Html.Textboxfor to an Input? Asp.net mvc
I want to take the value that is in @Html.Textboxfor is to add in the input <div class="col-md-3 form-group"> <label>Multiplicador 01:</label> <input class="form-control…
asp.net-mvcasked 8 years, 3 months ago Harry 3,805 -
0
votes1
answer1359
viewsSecurity Exception Error
I am trying to post a website on ASP.NET MVC on Ocaweb and came across the following error message... Security Exception Description: The application attempted to perform an operation not allowed by…
asp.net-mvcasked 8 years, 3 months ago Felipe Lemos 89 -
0
votes2
answers7710
viewsUnable to locate Data Provider . Requested Net Framework. Sql Server + Entity
I’m having trouble connecting with my local bank. This is my View, where I try to connect the bank using Razor: @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_LayoutOuvinte.cshtml"; var db =…
-
0
votes2
answers386
viewsLINQ to Entities does not recognize the 'Boolean Like' method?
I am having this error when trying to make one with query using LINQ to SQL after making the suggested changes: {SELECT `Extent1`.`idcliente`, `Extent1`.`nome`, `Extent1`.`pai`, `Extent1`.`mae`,…
-
0
votes2
answers1344
viewsOpen another page in modal Jquery
I have a problem that I can’t solve in any way. Well, I have a project on Asp.NET MVC as follows: Model public class Objeto { public Objeto() { } public Objeto(string nome, double valor, double…
-
0
votes2
answers475
viewsIs it possible to run ASP.NET MVC without IIS?
It is possible to run an ASP.NET MVC application without IIS? I wanted the user to be able to run this ASP.NET MVC application without having to configure IIS, I found this link, but I didn’t…
-
0
votes1
answer224
viewsLogin from an external system using ASP.NET MVC
I need to implement a form of my system (written in ASP.NET MVC) to log in from an external system to which I do not have the source code. This external system uses the same users of my system. How…
-
0
votes1
answer37
viewsSecure email link sending, which allows the user to access an Action Edit in the controller
I need to email a secure link so that the user at the click can access an Edit action in the controller. For example: Sending the link: localhost:64148/Movies/Edit? id=4 However I cannot send the…
-
0
votes0
answers287
viewsGet Formcollection in Page Navigation
In an ASP.NET C# MVC4 system I have some screens where I show some data. These screens have Filters and navigation (maximum limit of 10 data per page). I would like to know how I can record…
-
0
votes1
answer124
viewsSend array to controller via Ajax.Beginform and update Partialview
Good morning guys, I have a search screen where I list several values according to the user filter. I use Ajax.Beginform to update the table, but now I need to send an array, the user will be able…
-
0
votes1
answer143
viewsGenerate report in Azure
I need to generate reports in an MVC application that will be hosted in Azure and I learned through this tutorial: Using Report Viewer in ASP.NET MVC that it is necessary to hire a Virtual Machine…
-
0
votes1
answer51
viewsHow to create MVC 4 web.api project instead of MVC 5
I have a problem when it comes to creating my project in VS 2015, whenever I create the web.api application it creates with the version of MVC 5, but I need it to be MVC 4 because of the hosting.…
-
0
votes1
answer121
viewsHow to pass variables from C# MVC 4 to SASS SCSS?
I need to change my CSS files dynamically by pulling some data ,like colors, from the database. I chose to use SASS in the application, but I can import an application variable in MVC 4 to my SCSS…
-
0
votes2
answers339
viewsASP.net MVC - Save user permissions
I’m developing my first . net MVC application. Usually when working with Web form, after the user logs in his information (name, email, permissions, etc.) was saved in the session. This way, each…
asp.net-mvcasked 8 years, 1 month ago Carlos Henrique Biazin Esteves 299 -
0
votes1
answer32
viewsHow to List Added Photos in View?
I have the following code in my View that takes the path of the photo, and saves in the bank. @using (Html.BeginForm("Upload", "PessoaFoto", FormMethod.Post, new { enctype = "multipart/form-data"…
-
0
votes1
answer479
viewsHow to open the Razorpdf report in a separate tab
How do I export a PDF report with Razorpdf at a separate guide ? The report opens in the same system tab, I mean there’s only one guide and if I want to access the system I have to click on back…
-
0
votes1
answer631
viewsPass a JS variable as the Url.Action parameter
Hello, I would like to pass as parameter the variable JS, but it is not working, I would like to know the correct way to do this, I thank you already <script> function check() { var teste1 =…
-
0
votes1
answer58
viewsProblem with File Upload to Asp.net mvc
Upload files through Fileupload has a maximum size of 4 MB, after searching I found here in stackoverflow that should add : <configuration> <system.web> <httpRuntime…
asp.net-mvcasked 8 years ago Harry 3,805 -
0
votes1
answer332
viewsSort datatable.net jquery by date
I’m ordering the column REQUEST thus: "order": [[3, "asc"]] Note that the ordering of the column REQUEST nay is correct: The ordering of the column REQUEST it must be so:…
asp.net-mvcasked 8 years ago hard123 2,329 -
0
votes0
answers103
viewsError while accessing external.js file
I have a page in ASP.NET MVC and inside the Body tag I need to put the following javascript: <script type="text/javascript" async…
-
0
votes1
answer595
viewsButton only work if you pass the ID in the URL in Asp.net MVC
I’m having a problem with my Courses manager application in Asp.net MVC. The scenario is as follows: I have a screen where the "Student" makes his registration in a course. By clicking on the…
-
0
votes1
answer652
viewsAjax redirection on ASP.NET MVC
I’m using Ajax to save the form data. The problem is that after saving the data have no way redirect to the "Action Index" where customers are listed registered, because the request was made in…
-
0
votes1
answer1417
viewsEditable combobox with filter
I wonder if there is a plugin or a tutorial teaching to create a combobox that allows, as you write on it, filter the items, as in the image below: Note: I am using ASP.NET MVC with C#.…
-
0
votes0
answers91
viewsProcessing of a string in the view - Asp.net MVC
I have a public string TimeUpdate { get; set; } in my model that is of the form "13-12-2016 17:12:09".I need that in the view it appears only the hours and the minutes, as I can do the field…
-
0
votes1
answer140
viewsQuery with Linq to Entities in Many-to-Many relationship
I have the following tables in a database: The table Coursesprofessors joins the relationship Many-to-Many between the tables Courses and Teachers. I have been trying for a long time to do a query…
-
0
votes0
answers32
viewsError loading partialView
I have a curious problem. I created a page that lists records and it has two links, one to delete and the other to display details. Both call for a modal. Each modal is a modal partialView. To…
-
0
votes1
answer788
viewsRunning a Method in the background Asp.Net/C# (Async or Thread)
What I needed to do was this Calling a Post Method Called Cadastrar Before this method finish I would call a new method called PessoaNotificacao However the method Registration would not wait for…
-
0
votes2
answers160
viewsHow to add Scroll in User Registration?
I have an Asp.Net MVC project that uses Individual User Account and I would like to add a category (Role) for him at the time of his arrest. What I have at the moment is: View: @model…
-
0
votes0
answers46
viewsASP.NET MVC: Model Binding problem
I’m passing an object that has following property to Action: { ... Valor : "3500.00" } Financapessoalviewmodel: public class FinancaPessoalViewModel { ... public decimal Valor { get; set; } }…
-
0
votes2
answers158
viewsHow do I correct this error, and was able to see this other table in my view?
I need to make a select with two tables and play the result for a PagedList. But when I query, returns the error: Cannot implicitly Convert type 'Pagedlist.Ipagedlist' to…
-
0
votes1
answer96
viewsThe Member with Identity 'Faseprojeto_fase_target' does not exist in the Metadata Collection
I’m making a very strange mistake... I don’t have a clue. This is my class: public class FaseProjeto { public int IdProjeto { get; set; } public int IdFase { get; set; } public virtual Projeto…