Questions tagged as 'asp.net-mvc'

1
answer

COM Interop with CLient and Server

Hello, I have a DLL to encrypt data. I need to use the Component Object Model (COM) Interop to be able to communicate two applications and both traffic the encrypted data through this DLL. Searching, I found integration examples like integrate w...
asked by 16.01.2015 / 20:13
2
answers

Save data in a "Global Variant"

Hello, I have a DropDownList, coming from a ViewBag, and I need to write this value to some kind of "global variable". I researched and saw that the best ways to do this are by writing to a ViewBag or a ViewModel. Scenario: When the user logs...
asked by 09.01.2015 / 18:03
1
answer

Building Customizable Menu in ASP.NET MVC

I have a menu in my application, however I need to add a configuration screen where the system administrator selects the menu and chooses whether to enable or disable the menu item for all users of the application. I thought about creating a...
asked by 03.02.2015 / 16:09
2
answers

Error deleting using Entity Framework 6 and custom repository

I am using the Entity framework to do CRUD in the database, but I have an error trying to delete some item:    "The object can not be deleted because it was not found in the   ObjectStateManager. " I'm using the repository pattern, unit o...
asked by 24.06.2015 / 15:27
1
answer

(ASP NET MVC4 or 5) How to pass a custom name through XMLHttpRequest?

Personally the question is as follows, I have a <input type="file" id="fileupload"/> and a <input type="text id="Nome"/> field. To pass it to my controller, I do the following: var data = $("#fileupload").get(0).files...
asked by 04.06.2014 / 23:26
1
answer

How to pass list of checkboxes to ActionResult

I need to know how to pass the values of the inputs checkboxes to the action Edit , I need to pass the properties Checked and Id and store in a list of type Photo . Note that the controller that is running...
asked by 20.03.2014 / 20:08
1
answer

Login with different profiles

I'm developing an application for a school, where you control what students have. The application makes the student registration and registration of occurrences (suspension or warning) that the student did. And in that context, I need to login d...
asked by 22.05.2014 / 15:29
3
answers

Download file excel

I created a file in excel, but now the user needs to download it, how can I do it? follow my method: public PartialViewResult ExportarParticipantes(int idPeriodo) { Regex reg = new Regex("[/ :]"); // Monta arquivo par...
asked by 12.05.2014 / 19:32
1
answer

What is the scope of the variables in a page with ASP.NET MVC?

I have a view layout : <div> <h1>Pagina Principal<h1> </div> <div> <h3>Simular<h3> </div> <div class="row"> @{Html.RenderPartial("Partials/Teste/Simular", new SimularViewModel(...
asked by 16.11.2018 / 17:35
1
answer

How to make Footer stand in the footer after using AJAX?

I have already made several applications and have always used the method below to regulate the height of footer . Always using Bootstrap. HTML <div id="footer"> <div class="navbar navbar-fixed-bottom"> <div id="r...
asked by 19.08.2014 / 18:44