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
answer189
viewsCreating reports with ASP.NET MVC and Angularjs
Man backend is with C#/MVC, in the frontend use Angular, I’ve reached a point in the project where I need to create reports. How to generate reports in a web environment? Which tool do you use?…
-
0
votes1
answer313
viewsThe getPreventDefault() method should no longer be used. Instead, use defaultPrevented - Browserlink
I get this error on all pages when browserlink is enabled: The getPreventDefault() method should no longer be used. Instead, use defaultPrevented. browserLink:37:40278 Follow the image: Unchecking…
-
0
votes3
answers119
viewscreate java script functions after rendering all partial views
I have an aspnet MVC code with a main view that can call 3 view partials depending on where the user clicks. one of these partial view was part of the main view and had a jquery sortable ui plug,…
-
0
votes0
answers149
viewsMVC + EF application with N-Layers
I am working on an MVC project with EF 6, and I am having a very curious problem, in some Viewmodel, the object that comes from my Dbcontext does not seem to persist and I get the generic message…
-
0
votes2
answers373
viewsProblems with ASP.Net MVC routes
I have a problem with routes in MVC. routes.MapRoute( name: "Default", url: "{controller}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); This route,…
-
0
votes1
answer43
viewsBring only certain amounts of MVC bank information
I need to bring only 6 records from the database to show in the View, instead of bringing only 6 records, bringing all. The code is as follows:: public PartialViewResult Cursos() { ViewBag.Cursos =…
-
0
votes1
answer1206
viewsWhy is the type=Submit button not submitting?
I am creating a form within the modal, when I try to submit it, not submit it. My view: @model GerenciadorDeAtividades.Dominio.AtividadeDominio @{ Layout = null; ViewBag.Title = "Alterar Status da…
-
0
votes1
answer352
viewsError trying to recreate a table with code first(Migration)
I’m following Eduardo Pires' tutorial on DDD + Asp.Net MVC 5 + Ioc and so on. Well, in the first attempt to create the bank and the client table, it was a gem. It turns out, Eduardo made some…
-
0
votes3
answers123
viewsContains within a list
I have a list of Assets that contain a list of Accessories I would like to filter all Assets that accessories(ID_ACESSORIOS) are within a list of int. Follows the code; //Lista com todos os…
-
0
votes0
answers58
viewsProblems with accentuation Asp.Net c#
I’m wearing a foreach in my View, but I’m having problems with accentuation, note the code: @foreach (Area areas in Model.ListAreas) { @:{ id:@areas.Cod_Area, text: '@areas.Desc_Area'}, } Note: Meta…
-
0
votes1
answer88
viewsMongodb integration with ASP.NET MVC 5 and Postgresql
I am building a project in ASP.NET MVC 5 with Postgresql database, in this database there is a history table that will grow in about 500,000 lines per month and we will have reports that will gather…
-
0
votes1
answer86
viewsMake variable wait function to be generated
I have the following code: XmlParaApi = xml; that passes a string variable (xml) to a string global variable (Xmlparaapi). Until then all this code is in an Api, the Gora my problem is with the code…
-
0
votes1
answer2189
viewsHow to fix System.Collections.Generic.Ienumerable error
My application that manages Courses is making that mistake O item de modelo passado para o dicionário é do tipo 'System.Collections.Generic.List'1 [MeuProjeto.Models.Curso] ", mas este dicionário…
-
0
votes1
answer569
viewsMultiple modal bootstrap always returning the same content
I’m developing an Asp.net mvc application, on one of the pages of the site I call several bootstrap modals over each other, however, when you already have an open modal the new appears with the same…
-
0
votes0
answers11
viewsOauth in Azure does not open
I’m working with Google Drive API and localhost the Consent screen - the one you authorize the application to make changes and view your data - normally opens in a new browser tab. But when I move…
-
0
votes1
answer57
viewsFix value still inside the View
I would like to know how I can change the value of @Model still in the view, before sending to the server and which the best way to do this? Example: @{ var model = (Pessoa)Model bool isAtivo =…
-
0
votes1
answer90
viewsGoogle Consent screen does not open
I made an application that has the function of backing up to Google Drive, but it does not work when I put in some server, works only in localhost. What happens is that it doesn’t open the consent…
-
0
votes1
answer59
viewsError 500 Reporting Services Asp Net MVC 5
I am trying to render a report developed in Reporting services but it is giving error in some Source and does not render anything and returns me the following error: Failed to load Resource: the…
-
0
votes0
answers322
viewsWindows authentication with Selenium
I am trying to perform a windows autentation with Selenium, however is presented the error below.. There is another way to perform this type of authentication?…
-
0
votes2
answers158
viewsActionlink + data-loading-text
People need to put this data-loading-text in this link action only I’m not getting Action Link @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new {…
-
0
votes2
answers119
viewsRender View for a string
I took a code right here in the stack to render a view to string. When the view to be converted is in the same context, that is, in the same controller folder works normally, however if I try to…
-
0
votes0
answers86
viewsProblem running Asp.net mvc project in visual studio 2012
I have a project in Asp.net mvc 5 that I needed to pass pro mvc 4, so I created another project Asp.net mvc 4, copied all the folders of the other project, the references tal and gave a build and…
-
0
votes1
answer94
viewsPopulate Validationsummary with Data Annotations errors in Submit by AJAX
I defined several Dataannotations for the model which the instancia form. When the Form Ubmit is not by AJAX everything works as it should, ie the Validationsummary is filled with the ErrorMessage…
-
0
votes1
answer301
viewsReturn date x days left to arrive
Scenario: Ciclos id name endDate (datetime?) Dice: 1, primeiro, 05/10/2017 2, segundo, 15/10/2017 3, terceiro, 20/10/2017 4, quarto, 30/10/2017 With Line and lambda, I would like to return the dates…
-
0
votes1
answer177
viewsLog in with the Facebook user
How do I do a c# or Razor routine on my site, so instead of the guy just by logging in the page, have the option to log in by the facebook user? I’m not asking for code ready, just how I do it.…
-
0
votes1
answer103
viewsDifference between Webapi and SPA
I know that SPA is nothing more than a WebApi specific, but the question is: How do I differentiate one from the other, ie what the purpose of each in the Development world. Why would I develop a…
-
0
votes0
answers475
viewsError in @Scripts.Render("")
I cannot render bootstrap, scripts and etc, because mine @Scripts.Render and @Styles.Render doesn’t work. The reference System.Web.Optmization is included in the project. See the image with the…
-
0
votes1
answer60
viewsValidation with ASP MVC
Personal I am in trouble, precise that the attribute code (from my database) has either have position greater than 4 numbers and with attribute value can not contain value less than 0. I tried to…
-
0
votes0
answers446
viewsThe specified character string is not in the format required for an email address
I’m doing a routine and I’m not succeeding I’m having this mistake and on the web.config I left so <system.net > <mailSettings> <smtp from="[email protected]"> <network…
-
0
votes2
answers289
viewsHow to publish App in visual studio 2017 with ASP.MVC 5
Good afternoon, I am etudando ASP.MVC 5 and made a test app, published it in visual studio exporting to a directory and tried to climb the same in IIS on Windows 10. I did all the procedure…
asp.net-mvcasked 7 years, 6 months ago Ronaldo Lopes 453 -
0
votes1
answer55
viewsView coding
I’m having trouble setting the encoding of a page I did on ASP.NET Core (keeps appearing ? in letters with accents). Us MVC you used to do the configuration on web config. of the project, but now…
-
0
votes0
answers82
viewsBroken page when debugging in Chrome
When I do the debug of a project ASP.NET MVC in the Visual Studio directing to the browser Chrome, it already opens the broken page: This only happens when the browser is closed. When it already has…
-
0
votes1
answer1431
viewsHOW TO MAKE A Getasync in an ASP.NET API by passing an object as a parameter?
I would like to know how to send an object as a parameter to an API made in ASP.NET and return data by the same way? I understand that the simple method of a Get is: HttpClient cliente = new…
-
0
votes1
answer290
viewsPublish Asp.NET MVC website?
I developed a site in ASP.NET MVC and now I want to publish it on my provider using FTP. I’ve done all the FTP configuration on Publish of the 2013 VS I’m using. When do I publish the Controllers,…
-
0
votes0
answers147
viewsProblems with PDF file
I am showing a PDF file directly in the browser. In Google Chrome, it works perfectly, but if you use Firefox, the PDF is as shown below. Did you have to put some extra config for Firefox? The PDF…
-
0
votes0
answers223
viewsCapture ASP.NET MVC email attachments
all right? I am starting my studies in ASP.NET MVC (C#) and I wish you could help me with a problem that I am very lost. I need to connect in a mailbox and capture all attachments that have…
-
0
votes1
answer92
viewsIs it a good choice to start a project with Diagram use cases, then class diagram?
I have an idea of software, but I don’t know if I should go directly to the class diagram and then the coding or if first of all I should use a use case diagram. I will work on this software alone.…
-
0
votes1
answer542
viewsHow to show data coming in the database on a Highcharts chart in ASP NET MVC
Good afternoon, I’m trying to show information coming from the bank in a Highchart chart, but even though I can integrate it into the project, I can’t pass the values of the information coming from…
-
0
votes1
answer195
viewsDynamically hide a Webgrid column
How can I hide at runtime a column from Webgrid ? For example, I want to hide the column Parametro, it would be something like that: grid.Column("Empresa", "Empresa"), if(item.valor1 == X){…
-
0
votes1
answer808
viewsHow to go through all columns of a jquery table and hide if empty
I have a table html with 15 lines and I need to go through all the columns and check if there is any value, if Column is equal to empty then hidden this column, I know that this example below hides…
-
0
votes1
answer293
viewsHow to order dropdownlist?
How can I order the Dropdownlist? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div…
asp.net-mvc asp.net-mvc-5 bootstrap-3 razor dropdownlistasked 7 years, 5 months ago Marcos Rebitte 9 -
0
votes2
answers636
viewsForeach in Foreach
I need to do a foreach inside another but are two tables one is called categories and the other is a galerya, I need to return all galeryas within each category only that the name of the category…
-
0
votes1
answer157
viewsDisplay a wait message while downloading a file
How to display the wait message during file generation and compression for dowload ? I’m doing generation, compassion and Generate more than one PDF in memory and export it in a compressed file…
-
0
votes3
answers138
viewsDynamic dropdown list and comic return image does not work
Dropdown dynamic list and database image return does not work after the application is published on IIS. When Inspecting through the browser I had the following error: HTTP 404.0 error - Not Found…
-
0
votes1
answer1370
viewsHow to get selected value from dropdownlist in Asp.Net MVC
How to pick up the selected value on dropdownlist ? I need to take the selected value and pass this value to a session. I did with textbox this way and it worked, but with dropdownlist doesn’t take…
asp.net-mvcasked 9 years, 2 months ago AndreeH 1,333 -
0
votes1
answer229
viewsField obligation
I have two text type fields, where one is zip code and the other is Address. /in the ZIP code field I use the ZIP code API, when I type in a ZIP code it completes the other fields with the results.…
-
0
votes2
answers347
viewsHow do I make my Dropdownlistfor equal to Select
How do I leave my Dropdownlistfor, like this select where the first field cannot be selected. <select> <option value="0" selected disabled>Selecionar</option> <option…
-
0
votes2
answers114
viewsHow to receive information in a View?
I programmed my controller as follows: [HttpPost] public ActionResult Login(string pUsuario, string pSenha) { usuario oUsuario = modelOff.usuarios.Where(p => p.usuario1 == pUsuario &&…
-
0
votes1
answer335
viewsLoad excel data on screen
I’m having a problem loading data from a spreadsheet on the screen (table). The system is done in C# MVC5 with Razor and Entity framework, I need the user to choose an excel file already filled and…
-
0
votes0
answers19
viewsGet route.name through Httpcontextbase
I have mapped routes in my application: context.MapRoute("Home.Index", "home/{action}/{parameter}", new { controller = "Home", action = "Index", parameter = UrlParameter.Optional }); I wrote an…