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
-
2
votes3
answers1069
viewsjQuery multiline highcharts
I have an MVC application and would like to clarify some questions on how to implement a chart with database data. I am using jQuery to get the values from the database, but did not understand how…
-
2
votes2
answers1033
viewsChange a detachable PDF field
I’m working on MVC 4 and installed the iTextSharp to create PDF’s, until everything well. But what I am doing is replicating a PDF that already exists, to fill the respective fields required in this…
-
2
votes2
answers1323
viewsCreate and Edit Onetomany with Viewmodel
I am creating a simple news application in ASP.NET MVC 4. I have a News class and a Category. I made a Viewmodel public class NoticiaCategoriaVM { public Noticia Noticia { get; set; } public…
-
2
votes2
answers1555
viewsCalling action with AJAX, but does not return Alert to view
In the textbox Ticket, at the event onChange() I call AJAX below: $('#Ticket').on('change', function () { var tkt = this.value; $.ajax({ url: '@Url.Action("VerificaTicket", "Oc")', data: { 'tkt':…
-
2
votes1
answer169
viewsUpdater of a web application Asp.net mvc
I was here thinking of a framework for automatic updating of my web systems in clients, so I thought of using the ClickOnce with some gambetas(technical adaptations). It did not work, it works only…
-
2
votes1
answer537
viewsAjax request in C# update authentication
as I do for each Ajax request, update the Forms Authentication cookie. I want to update on Forms Authentication in my controller, because it is a calendar screen that uses Fullcalendar. I’m having…
-
2
votes1
answer460
viewsReceiving several Textbox values
Need to edit multiple records simultaneously, more specifically a list of students and load/edit from several textboxlinked to such. Basically I need to give/take their presence. How could you…
-
2
votes1
answer1354
viewsUpload multiple files using Uploadfy in ASP.NET MVC
How to implement multi-file upload with uploadf? I find it very interesting to use the upload bars etc. is making this mistake: This is my controller: You may notice that you have many error…
-
2
votes2
answers1179
viewsHow does MVC layer-to-layer communication work?
I started studying MVC, but I’m still in theory and I was wondering how the conversation between the layers works in practice. One could give an example of C# code without using the MVC framework?…
-
2
votes2
answers1142
viewsPlugin to upload multiple images
I have the following classes in my project. Galeria and Fotos I have a ViewModel where I take the data from Galeria and data from Fotos. When doing Submit (normal, not asynchronous Submit) Galeria…
-
2
votes2
answers1318
viewsHow to write HTML inside Ajax Success
I have a project in ASP.NET MVC 4 and in it I have a requisition Ajax where calls the controller sending only one parameter. The request does everything correctly, brings me a list with the data I…
-
2
votes1
answer244
viewsMulti-bank Login Control
Well, I have my application and every client will have his own database. As each customer will have their database, they will also have their user table for login. So I have Bancoempresa1 -…
-
2
votes1
answer338
viewsCreate Web Service by repurposing code from an already published site. Good practices in Asp.NET MVC
I need to create a web service in JSON reusing as much code as my site has, but I don’t know how to do it, if I should add a Solution to my site project etc. I can’t abstract the idea, I need to…
-
2
votes1
answer325
viewsMSBUILD - How to Publish Multiple Single Solution Projects (OSGI)
I’m in need of some help publishing my projects. I am using OSGI to modulate my application, with consequence in my Solution there are several WEB applications. Ex: Solution A 1. Aplicação 1 2.…
-
2
votes1
answer46
viewsWhich reference to import into Tableattribute?
I’m not getting my application to find the table tag. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dominio { [Table("Loja_Carrossel")] public class…
-
2
votes1
answer959
viewsThis Assembly does not allow partially reliable callers
I have my project, and in it I have a dll to access some methods, developing works normally, but in the approval environment this giving this msg: "This Assembly does not allow partially reliable…
-
2
votes1
answer1249
viewsASP MVC 4 and Webservice
I have a Webservice with all the methods I need to make the system work and I also have a page ASP NET MVC 4. I already referenced the Webservice Referral Service. I can access a method that returns…
c# asp.net-mvc sql-server web-service visual-studio-2013asked 10 years, 7 months ago Thiago Alex 349 -
2
votes1
answer112
viewsModel with dynamic type properties
I have a select on the bench that brings several items and loads everything into one model. The point is that one of the items, depending on how the select is done, is brought in a different type.…
-
2
votes2
answers1837
viewsIIS error page 404
Good afternoon, I developed a system and I have a logic that does not allow unauthorized profiles to access parts of the system that is not allowed for it. What happens is that when trying to access…
-
2
votes3
answers1752
viewsAlert message in Asp.net mvc
I have in an application in Asp.Net MVC a form that ends as follows <div class="modal-footer"> <input class="btn btn-primary" type="submit" value="Salvar" /> <a class="btn…
-
2
votes1
answer310
viewsMake a query using Entity Framework and Stored Procedures
I have the procRetornaCliente process that receives the following parameters: Id, areaAtuacao, City. Mapping it on EDMX, I got a Complex Type (procRetornaClienteModel) with all fields mapped, but do…
-
2
votes1
answer1027
viewsWhen and how to use the Asp.net web api
I have been studying Asp.net MVC for some time, I have been reading about WebApi but I still can’t understand when and how I can use it. Ex: I have a small news system, where I have a area where is…
-
2
votes2
answers942
viewsMulti Language ASP.NET MVC
I have an ASP.NET MVC application. And I need to make it multi-language, using a database. I thought of two approaches: Livro Titulo Subtitulo Idioma OR Livro Titulo TituloEN Subtitulo SubtituloEN…
-
2
votes1
answer493
viewsaspx page running on Asp net mvc
Good afternoon, I have an aspx page that, through some components, can generate several documents used in the company. Well, the page is in aspx and uses proprietary components (Dlls), I can not…
-
2
votes1
answer434
viewsMvccheckboxlist, Radiobuttons and Text Inputs
I have a project where I’m using Mvccheckboxlist. My question is this:: Could I put a mvccheckboxlist together with radio Buttons and inputs ? Because I am in a project at a school that I have to…
-
2
votes1
answer1367
viewsGet list of checkboxes in the controller in Asp.Net
How do I get a checkbox list like this: <div class="editor-field" style="overflow-y: auto; height: 150px;"> <label>Especializações:</label> @{ if…
-
2
votes1
answer167
viewsHow to position a text inclined in Reportviewer?
There is a way to tilt a word (textbox, or other possible way), in Reportviewer, to stay at 45º (degrees), for example?
-
2
votes1
answer85
viewsModel in sessions
I have a GRID (table) that when selecting an item through the ID I load the entity in a session via ajax. public static class Sessoes { public static Produto Produto { get { return…
-
2
votes2
answers2389
viewsStored Procedure with output parameter being the Id of the last insertion. C#
Hello, I’m performing an insert in a table, but I need it to return the ID you just entered. I searched on the command OUTPUT but I couldn’t solve my problem. I need to do all this using procedures,…
-
2
votes1
answer566
viewsForm with upload to image
How do I upload images to ASP.Net MVC? I have a registration form where the user has the option to send an image to use in his profile. An example would be useful.
-
2
votes1
answer354
viewsCreate a web form generator
I need to create a web form generator, ie create the form, fields, validations, CSS so that this structure goes to a data repository and when consulting the structure mount on the screen the form.…
-
2
votes1
answer3092
viewsHow to create a login with different permission levels?
How to create a login with different permission levels? Is it necessary to create a table in the database to log in? I have read about formsauthentication, cookies and etc, but still do not…
-
2
votes1
answer123
viewsCustomize windows authentication
I’m creating an app where I use Windows Authentication for validation of user data. As soon as the application opens, some information from that logged-in user already appears on the first page. In…
-
2
votes3
answers802
viewsPost in a checkbox list
I am creating an application where the user will be able to select a variety of products through checkbox. But when I click on "Buy" the list is empty. Someone can give me a help with this? That…
asp.net-mvcasked 10 years, 5 months ago user4849 141 -
2
votes1
answer72
viewsLocal Bank Storage Method
I have a local bank on my desktop, in it I developed an application using C# and Asp.Net MVC and thought it would only take the trouble to migrate to some MS SQL database when uploading the project.…
-
2
votes2
answers7771
viewsPass parameter (a list object) from View (List type) to Controller. Asp.NET MVC
I own a view like "List<SimpleUser>" and I want to pass by parameter to my controller the object that is in my foreach, but this arriving null being done as follows: View: @{ ViewBag.Title =…
-
2
votes1
answer166
viewsProblem with Grunt-uncss
I wonder if it is possible to read a file . CSHTML with Grunt-uncss, because I searched and tried and so far had no results..
-
2
votes1
answer220
viewsHow to list related data
In my project I have two tables: Student and Occurrences. And they are related so that a student can have several occurrences. My need is: In the Student Details view (Details.cshtml), I need to…
-
2
votes0
answers94
viewsHow to validate an AD user through a field using a MVC app?
I’m developing a Sharepoint MVC app that creates an AD user in Sharepoint, so I need a field similar to SharePoint:PeopleEditor that exists in ASPX, to validate these users at the time of…
-
2
votes1
answer566
viewsGet values through get method parameters
I have a action that sends by parameters the codCliente: //master/CadastrarEndereco?codigoCliente=1011 How do I get that value codigoClientein my controller so I can persist the value in the BD?…
-
2
votes2
answers138
viewsDoubt with _viewStart on MVC4
I have 2 layouts (LayoutPrincipal.cshtml and LayoutInterno.cshtml) to home page is another to the internal page. The internal page will repeat so I did the creation of the _ViewStart which points to…
asp.net-mvcasked 10 years ago Harry 3,805 -
2
votes1
answer157
viewsCreate a record and add relationship through the httpPost Web Api
When creating a new record in the tab I need to take the ID of my main screen and send along with the new object. Currently I have this code: public async Task<IHttpActionResult>…
-
2
votes3
answers679
viewsError generating PDF with Rotary
Guys, I’m having a problem here to generate a pdf with the data coming from the bank. My system has a register of students and their occurrences. What I wanted was that, at the time of detailing the…
-
2
votes1
answer147
viewsReset View object list even with Hiddenfield
public ComprasOrdemCompras GetToCreate(ComprasOrdemCompras model, int EmpresaId) { ComprasOrdemComprasProduto clsPedidoProduto = new ComprasOrdemComprasProduto(); //Preenchi meu produto INÍCIO //…
-
2
votes1
answer140
viewsValidate delete in controller, return html helper
I have my registration, which was done using Scallfold’s visual studio In my view: @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="form-actions no-color"> <input…
-
2
votes1
answer240
viewsJoin for field search
I asked a question with another user but I do not know what happened that I could not recover the information and I had to create another one now. Anyway, I wanted to create a search field and I was…
-
2
votes2
answers761
viewsSave data to a Viewbag
I am developing an application, where I have a Viewbag listing a list of numbers, from my database. I need to write the selected number in this dropdown, in another Viewbag. I don’t know how to do…
asp.net-mvcasked 9 years, 10 months ago Randrade 21,612 -
2
votes1
answer914
viewsUpload ajax file Asp.net-mvc
I have the following problem when using file upload. ajax performs "at the same time" both actions. And I would like him to perform the ulpoad action and then the other. Or else another way to…
-
2
votes1
answer187
viewsWhat is Rootdse
The manager of my company, gave me a file talking very little about "rootDSE", and told me that it is a way to integrate LDAP with programming languages. I’ve never heard of it this way, and I don’t…
-
2
votes1
answer1122
viewsMake an SQL query with Entity Framework 4
How do I perform a query in the database using Entity Framework 4 passing a string previously stored inside a StringBuilder. The reason is that the SQL query string is giant. I know it is not a good…