Questions tagged as 'asp.net-mvc'

1
answer

Unit Testing on the Controller Mocking the EF Context

I'm not able to come up with a solution on how to test my application (mockando the EF context) EF Context: public class SawluxContexto : DbContext { public DbSet<Restaurante> Restaurante { get; set; } public DbSet...
asked by 23.05.2018 / 13:32
0
answers

Web-API display problem with tables with relationships

Good morning, people, I am developing a WEB API to be consumed in a mobile application using Xamarin, I am transposing the classes directly from the database with the code first of Visual Studio, however when I try to generate a simple view o...
asked by 22.05.2018 / 15:25
1
answer

send request on first button click

I have to fill some combobox at the click of a button. When I click this button it first loads a modal and the second time I click it it creates the modal by loading the data I need by doing the ajax request. How do you send this request t...
asked by 22.05.2018 / 15:45
0
answers

How do I keep a modal open after a RedirectToAction in the view?

I have a registration form in a modal, in this modal I have a google reCaptcha that if it is not valid it should display the message "Invalid or mandatory google captcha!" clicking the record button. My difficulty is, how to keep this modal open...
asked by 06.06.2018 / 19:37
1
answer

Load a window only once after reloading the site in asp.net C #

Having this window whenyoufirstaccessawebsite,howdoIonlyappearonceevenafterI'vereloadedthewebsite,ordoIreturntothehomepageandnotshowupagain?<inputtype="radio" id="rd"> <div class="bg"> <div class="box">...
asked by 18.05.2018 / 17:39
0
answers

Questions about how to create a Change Event in a Combobox to update a PartialView

In my Asp.net MVC project an Index view contains a block in which you open the PartialViews Edit Details and Delete in a Modal window. Everything works 100%, but I'm having a problem with the Event of my "PersonNature" Combobox that is not worki...
asked by 16.05.2018 / 23:58
0
answers

Edit view for the AspNetUserClaims table

Hello, I'm starting now with the ASP.NET Identity Framework and I need an edit view for the type and value of a claim. For example, a user must have Administrator and the Active value in order to access Managed Actions, but if it does no...
asked by 22.05.2018 / 23:05
0
answers

Bring related data into a table

I need to bring the sessions of a particular movie, but if there is more than one session in the same cinema, bring only one die and the two schedules side by side. Anyone have any way to do it? It's my first application with Asp.Net and I'm a b...
asked by 16.05.2018 / 03:30
0
answers

Popup control DevExpress does not block backtraces

I'm developing a system using DevExpress MVC v16.2.6. I have some controls that call a popup control, where it will do a search, sleight, etc. My problem is that this popup that opens, is not blocking the fields of the form, is actually no...
asked by 15.05.2018 / 21:44
1
answer

Call other data from an entity

I created a database entity and a dropdownlist. When I click on a list item, I want to call the other data. How do I do it? Follow code public ActionResult dbExample() { copaDBEntities entity = new copaDBEntities();...
asked by 14.05.2018 / 20:26