Questions tagged as 'asp.net-mvc'

2
answers

Error in web.config in c #

Hello, I would like you to help me. I am running this file but I get an error in the web.config. I am using the visual studio 2013 and I think that earlier I would have done it with the visual studio 2005. The error comes to me like the image I...
asked by 10.02.2017 / 16:46
1
answer

Can not open database "Real Estate" requested by the login

Good morning people. Before formatting my pc a few days ago I was doing a project in MVC C # and everything worked perfectly, now it turns out that I get the following error:    Can not open database "Real Estate" requested by the login. The...
asked by 05.02.2017 / 15:39
3
answers

Do not load the scripts from the BundleConfig.cs

I am starting a project in ASP .NET MVC 5 in Visual Studio 2017, I have created my BundleConfig.cs file with the following information: using System.Web; using System.Web.Optimization; namespace Login { public class BundleConfig {...
asked by 19.04.2017 / 20:10
2
answers

How to get the value of the DropDownList Id?

I am working with ASP.NET MVC 5, I am in need of getting the value of Id of Item selected from DropDownList , when I say value I refer to Id not to Descripción . The DropDowList is loaded as follows: Co...
asked by 18.01.2017 / 22:24
2
answers

How to leave the selected value using html.dropdowlist in MVC C # with aspx engine, similar to razor

I have the following definition of list of options: <% dynamic listItems_Afirmacion = new List<ListItem> { new ListItem { Text = "Si", Value = "S"},...
asked by 06.01.2017 / 02:22
2
answers

@ Html.DropDownList () Does not show the selected value of the ViewData ["something"]

I have a SelectListItem and in an element I put Selected = true, but when passing this object to razor in an @ Html.DropDownList () it does not recognize the selected element. This is how I have it in my view Razor @Html.DropDownList(...
asked by 29.05.2017 / 19:36
1
answer

I lost the Session variables in asp.net MVC

After having started the session, all the session variables are suddenly deleted. For example, I agree: [HttpPost] public ActionResult Login(MembersViewModels user) { if (ModelState.IsValid) { if (Isvalid(u...
asked by 11.09.2016 / 18:20
1
answer

How to change Action according to condition in Ajax url?

I have the following sript: $('a[id^=asociar-]').click(function (e) { e.preventDefault(); var params = { id: parseInt($(this).attr('id').substring(8)), proveedorId: $('#proveedorId').val() };...
asked by 07.05.2016 / 04:22
2
answers

Modal Bootstrap is only shown once as modal

I work in an ASP MVC application, I have the need to show an image in a Modal window using bootstrap, the modal window will be called from a cell in a table, this is my HTML to shoot the modal: <td class="celda"> <!--Aqui es donde m...
asked by 25.04.2016 / 18:18
1
answer

Can I do Global Query Filters in Entity Framework 6? in the OnModelCreating?

I'm trying to do this in EF6. It can? I wanted to make a blobal filter protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Cotizacion>().HasQueryFilt...
asked by 15.12.2018 / 02:13