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
-
1
votes1
answer155
viewsWidth does not increase more than 283px Bootstrap
Hello, I have a form where I have one TextArea. But the Width is no more than 283px. When I decrease, it decreases correctly, now when I increase, it doesn’t work. I set the size as 400px, however,…
-
1
votes1
answer331
viewsCheck that framework 3.5 is installed on the machine
I have to perform a function in C# to check that framework 3.5 is installed on the machine but not using Registry.LocalMachine.OpenSubKey("Software\Windows\Microsoft.NET\..."), because this function…
-
1
votes1
answer523
viewsHow to perform a C# CRUD with Mysql and ADO
I need to do the relationship between tables 1:N and N:N. Table produto: public int id {get; set;} public string produto {get; set;} public list<tamanhos> tamanhos {get; set;} Table tamanhos:…
-
1
votes1
answer97
viewsENTITY FRAMEWORK - add-Migration New Project without renaming old tables
I want to share a database with some projects. I’ve already done the first project with the bank and it’s okay. I copied the project to create another similar one, changed the initial prefix of the…
c# asp.net-mvc entity-framework entity-framework-6 asp.net-mvc-4asked 8 years, 7 months ago Daniel Gregatto 1,054 -
1
votes1
answer1280
viewsHow to Post a method by clicking a button type=button
I’m making an application where when I click a button I have to send an email. I got my page one input type=Text and a button type="button" that with css got like this ->. I need that when I…
-
1
votes2
answers78
viewsHow I Address a Partialview ASP MVC
I have a View who has a div and within it goes a partialview EX: <div> @Html.RenderPartial("MeuPartial"); </div> In the right page render load, however, I needed it to render every time…
-
1
votes1
answer96
viewsHow to List Products from One MVC Distributor
I have an application that manages the Distributor and its Products. I want to list only the products of the Distributor I selected, but in case everything is appearing. I tried to do so: public…
-
1
votes1
answer233
viewsUpload _Layout.cshtml information from database
I want to upload the information to _Layout.cshtml as registered in the database, for example, @ViewBag.MetaDescription, @ViewBag.MetaKeywords, @ViewBag.Title and other information also from the…
asp.net-mvc asp.net-mvc-5 razor entity-framework-6asked 8 years, 6 months ago Alexandre Rodrigues Alves 11 -
1
votes2
answers7643
viewsApplication Security Change for Medium Trust
I recently uploaded a system I created in Asp.Net using MVC and Entity to the Kinghost web server. On localhost and on my own server it works normally. When trying to access the application on the…
-
1
votes1
answer513
viewsHow to load a partialview for an AJAX request?
I can’t carry a partialview in a div ! <fieldset> <legend>Contato:</legend> @Html.Label("Tipo Contato: ") @Html.DropDownListFor(t => t.CodTipoContato, Model.TipoContatoList, new…
-
1
votes1
answer217
viewsSlowness with Fluentnhibernate
I am using Fluentnhibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or register a product) the site is loading…
c# asp.net-mvc nhibernate fluent-nhibernate asynchronousasked 8 years, 6 months ago Vitor Ferreira 48 -
1
votes1
answer229
viewsCan I create modules in Asp.net mvc?
I have a home page with contact and such, like other pages. On the page I have a Login button and when I click the same redirect to a project module. Example: Home localhost/Home/Index Login…
-
1
votes1
answer1164
viewsRemove Git Binding in the ASP.NET MVC Project
I started an ASP.NET MVC project and initially used git for code control, but now I want to transfer to Team Foundation Services, as I do to unlink my project from git?
-
1
votes1
answer124
viewsIs it possible to do Phonegap together with Asp.Net MVC 5 in a single project?
I would like to know if there is a possibility of making a Solution in DDD Design with two View Ports, being one for mobile app using Phonegap and the other MVC 5. I want to make an activity…
-
1
votes1
answer249
viewsEnable Iframe in Asp.net application
I have an Asp.net application and I need to put it inside an Iframe. Turns out it gives Chrome console error: Refused to display 'domain' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.…
-
1
votes1
answer184
viewsHow to do Edit action with view model?
I’m trying to do in my project the editing part of the data that was registered. Well, the data log part is working fine, but now I need to edit this data. Before, I looked around the web to see…
asp.net-mvcasked 8 years, 5 months ago Érik Thiago 2,338 -
1
votes2
answers557
viewsFormat date in Viewbag
I have a Viewbag returning two dates in a Dropdown, but they are returning with the same format that were saved in the database( MM/dd/yyy HH:mm:ss). I need them to return in the…
-
1
votes2
answers1338
viewsMake Ubmit from a form via ajax
I have following code in my controller: [HttpGet] public ActionResult Mensagem(long idT, long idD) { string raaluno = acr.getAlunoLogado().ToString(); ViewBag.idT = idT.ToString(); ViewBag.idD =…
-
1
votes2
answers1616
viewsHow to Send Controller Checkbox?
I have a View where in a client list there is in the first column (table) a Checkbox so that it may be possible to select one or more customers and send to Controller. In View I am using the…
-
1
votes1
answer92
viewsMigrations error c# MVC
I created a Finance Drive Controller, but when I click on the menu to list returns the error: Invalid Object name 'dbo. Move'. Why did that name stick? It was supposed to be Movimentacoes. PS: I…
-
1
votes1
answer199
viewsMenu with Bootstrap Internet Explorer 9
I have a page that works normally. However I stopped the application by Internet Explorer 9, and the menu behaved as if it were a Mobile menu. Follow the image to better understand: Other browsers…
-
1
votes0
answers174
viewsHow to Update SQL Server Localdb Version
I have a site project in ASP.NET MVC shared on team and home pc. I can connect in DB normally, however, when I log some user registered on the site on the pc of the job it happens the following…
-
1
votes1
answer3043
viewsHow to use Microsoft ASP.Net MVC in English?
I found this package, but I don’t know how to use it: Microsoft ASP.NET MVC English Resources Microsoft.AspNet.Mvc.en https://www.nuget.org/packages/Microsoft.AspNet.Mvc.pt-br/ How to use the…
-
1
votes2
answers1363
viewsRecover query string with "+" character
I have in my controller, a method where I take a Query String, I decrypt it and use the data in my query. However, when the encrypted value has a +, he is not recovered by Request.QueryString. Soon…
-
1
votes2
answers1110
viewsDisable Dropdownlist in View
Class public class ConfiguracaoEstado { .... [Required(ErrorMessage = "Selecione ao menos um estado.")] [Display(Name = "Estado")] public int EstadoID { get; set; } ... } Controller private void…
-
1
votes1
answer1642
viewsHow to return to View items checked by Checkbox?
I am developing a project in ASP.net MVC. In my registration form, I have a checkbox where I select the items I would like to add in the BD. My edit form, I have to get these checked items and show…
-
1
votes3
answers897
viewsC# hangfire stopping
I’m using hangfire with IIS in an Asp.net MVC application with C#. I have a Task running every 5 minutes, but the application is stopping. This occurs in a variable time period, sometimes runs for 3…
-
1
votes1
answer469
viewsHow to configure Context to put table name in plural in en-BR?
I am in an ASP.net MVC 5 application, configuring a class DbContext. When the EF generates the database, the tables referring to the application objects are getting the names in the plural in…
-
1
votes1
answer109
viewsError updating model through database
Hello, I deleted a table in sql server, in visual studio 2015 I went to update the "update model from database" option, updated my change. But when saving EDMX all the entities(tables) of EDMX…
-
1
votes1
answer356
viewsGeneric class for CRUD
I have some common CRUD features in the database, such as cadastrar, buscar um registro, buscar todos os registros and excluir. For this, I am currently implementing a manager class each database…
-
1
votes1
answer69
viewsRestart count when changing year
I have a View that returns data that the taxpayer paid the pension in the current year, where I return the monthly payment of the same. I need to perform the sum of the months, creating a monthly…
-
1
votes1
answer973
viewsPerform field sum in the table
I have a View that returns data that the taxpayer paid the pension in the current year, where I return the monthly payment of the same. I need to sum up the months by creating a monthly subtotal.…
-
1
votes1
answer616
viewsModify table Aspnetuserclaims Asp.net Identity
Good morning, I have a little logic problem with identity. I need to create an access screen and would like to use the table Claim already made available by it. The big problem is that the table…
-
1
votes1
answer2360
viewsFilter data from a table through a Dropdown
I have a table returning the amounts paid by taxpayers. However I have to return all the data (because the application adds field to field). So far so good. But to show the user, I need to filter…
-
1
votes1
answer141
viewsBranchs and merge structure . NET MVC
I have the following branchwork structure for ASP NET MVC projects Master - production version DEV - Development Release - Bug maintenance This structure was already defined when I arrived at the…
-
1
votes2
answers570
viewsIoc with Ninject
I am developing an application using Ioc and Ninject for dependency injection, and came across the following problem: When uploading my application to the server I got the following error: Someone…
-
1
votes1
answer39
viewsIs it possible to display more than 1 field information in @Html.Dropdownlistfor?
I would like to show more than 1 description No controlle //lista var tbuscar = new TituloPosAplicacao(); var listar = tbuscar.ListarTodos(); ViewBag.TituloPos = new SelectList(listar,…
asp.net-mvcasked 8 years, 3 months ago Harry 3,805 -
1
votes1
answer32
viewsJavascript src link
Boas, I have the following code, in a function Javascript, function(){ var noDataIcon = document.createElement("img"); noDataIcon.src = "~/Images/delete_database.png"; } happened to give me error in…
-
1
votes1
answer481
viewsQuery using Linq to sql in Asp.net MVC
I have a question about how to return the records according to the query. I don’t know what could be wrong, but the query is not returning according to what was past. I have my controller: public…
-
1
votes2
answers1886
viewsAssembly Microsoft.Owin not found
In my project I am using the OWIN library for user authentication. I already installed the package, but when I run the project I return the error: Could not load file or Assembly 'Microsoft.Owin,…
-
1
votes1
answer86
viewsHow to set up an Authentication and Authorization Server?
How to set up an authentication and authorization server like Google, by Cookie, and then be able to make available to ASP.NET MVC applications of the same group of web applications with the same…
-
1
votes2
answers355
viewsMaintenance page ASP.NET MVC
I have an ASP.NET MVC site that when it goes into maintenance I need to display a maintenance page, ASP.NET MVC has some possibility to do this just by changing a key on Web.Config or something…
-
1
votes0
answers42
viewsOpen secondary pages in a particular Aspnet Core space
I have a page where I use the @renderBody to open my main pages, but the need arose to get a submenu and need the following pages to be opened in a certain space, but when shooting the…
-
1
votes1
answer1029
viewsDoubt Insert Image with Jquery?
Friends, Following the posted examples, I made the adjustments: public ActionResult ThumbNail(int largura, int altura, string caminhofoto) { if (caminhofoto != "caminho" ) { WebImage webImagem = new…
-
1
votes1
answer222
viewsValidating Empty Dropdownlist
I have the following Dropdownlist: @Html.DropDownList("HorasPendenciaID", null, new { @class = "dropdown-custom" }) When seventh '0' in his value it is empty. I would like to validate whether…
-
1
votes2
answers358
viewsPing on server with C#
Is there a . Net class with the ping feature? I have the server IP in a string type attribute and would like to drip the server to see if it is online or offline. Does anyone know ?
-
1
votes0
answers463
viewsUse two CSS classes in C# Razor MVC
I want to use two CSS classes in Razor. Is it possible to do this? Because I’m not getting it. Here’s what I’m doing: <div class="form-group"> @Html.LabelFor(model => model.ativo,…
-
1
votes2
answers62
viewsSave Campo Automatico
I have the following situation. In the Bank, I have the tables State, City, with data duly registered and linked. In View I would like to put only one Dropdown with the list of Cities, but I would…
asp.net-mvcasked 8 years, 1 month ago Erison Nicodemos 99 -
1
votes0
answers49
viewsLink sends null array
I have a search screen and need to send a parameter as array, this part was quiet, the big problem is that this screen is paged, so in the page change links I put to send this parameter, but it is…
-
1
votes2
answers544
viewsChange Color of an Error Message using Annotation
Where can I change the color of that ErrorMessage?…