Questions tagged as 'asp.net-mvc'

1
answer

Login to an external system using ASP.NET MVC

I need to implement a way for my system (written in ASP.NET MVC) to log in from an external system to which I do not have the source code. This external system uses uses the same users of my system. How do I log in to the system on my other syst...
asked by 14.09.2016 / 15:11
1
answer

Write to DB without mask applied by jQuery

I'm doing a project in MVC and with the use of jQuery I made the CPF mask as below: $(document).ready(function() { $(".cpf").mask("999.999.999-99"); $(".cpf").addClass("form-control"); }); Follow my div : <div class="form...
asked by 06.05.2017 / 18:17
1
answer

Persist in my database values passed by a DropDown in my html?

I have a dropdownlist with all UF of Brazil. For example: public IEnumerable<SelectListItem> ObterUF() { return IncluirSelecioneNoDropDown(new List<SelectListItem>() { new SelectListItem()...
asked by 20.11.2014 / 12:48
1
answer

Result of foreach behaves unexpectedly

I've been working on a page, where I need to create a treeview system with checkbox and this is consuming a lot of my time and leaves me worried about the project SLA. In the controller, there I have a LINQ that returns everything I need on the...
asked by 18.09.2014 / 15:45
1
answer

Relationship of two tables MVC C #

How can I make a Lambda query, I have two Permission and Employee tables, where to inform the email of the Employee, it brings me the permissions of the Employee, through the email that I reported. In SQL looks like this:...
asked by 23.09.2016 / 19:56
1
answer

How to use or add aspx pages in an Asp.Net MVC project

Can you use or add to my project that is in Asp.net MVC a page that is ready in webforms (aspx and cs)? If yes how do I add the page?     
asked by 10.09.2015 / 22:17
2
answers

Area does not work on the Locaweb server

I have a hosting in Locaweb and am publishing an mvc 4 app. But Areas does not work. Error:    Server can not access application directory '\ windows-pd-0001.fs.locaweb.com.br \ WNFS-0002 \ delavi4 \ web \ panel \'. The directory does not...
asked by 15.10.2018 / 01:32
1
answer

ReferenceError: $ is not defined

Hello, I created an application a short time ago and got jquery via Nuget, but it gets error starting jquery. I have the following function in a js file. $("#myNav").bind("mousewheel", function (ev, delta) { var scrollTop = $(this).scrollT...
asked by 31.12.2018 / 00:45
1
answer

How to re-order a ViewBag, within View?

I'm trying to make a ViewBag that received a list on the controller, be reordered after changing a combobox without the page being reloaded. Passing the List to the ViewBag: public ActionResult Answers(int id) { List<...
asked by 20.12.2018 / 20:10
1
answer

Method / Algorithm to fetch an ASP.NET MVC data

I'm having the following problem: I'm trying to fetch a date. I just can not figure out an algorithm for this. I have a class named RequisicaoDeVeiculo , this class has the DataEHoraDoServico attribute, and I have another class that...
asked by 04.09.2018 / 01:21