Questions tagged as 'asp.net-mvc-5'

1
answer

How to delete multiple selected records in a DataTable Bootstrap using JavaScript - Asp.net

In my Index I have a Table (DataTable Bootstrap) that allows me to select as many rows as I want. Datatable rows are loaded dynamically using JS. Each line stores the registry id: ("href=" / cep-manage / remove-cep / '+ full.id ") at the time th...
asked by 28.12.2018 / 20:56
2
answers

How to enable the "Add Controller" option in the menu?

Recently the option of my Adicionar controller has disappeared from the menu. I'm using Visual Studio 2013, and the project is ASP NET MVC, version 5.1. How to fix this problem?     
asked by 13.02.2014 / 18:18
1
answer

Write with MVC and jQuery however the data is coming null

I made a jQuery to get the data coming from the form. And I made a method in my controller to write to the Database. It turns out that the form data are coming null. What can it be? Below my jQuery and my method of persisting in DB. j...
asked by 14.03.2014 / 19:21
1
answer

Load var into jquery with data coming from DB by Controller

The var str has script with fixed values. How do I load these values from a DB through a controller ? I already have the method that brings me this. var str = ""; var data = []; $(document).ready(function () {...
asked by 01.05.2014 / 16:22
0
answers

What's wrong with my Update?

Good morning. I'm a beginner and I'm having problems with my Update. I wonder what I'm doing wrong. public string Update(Usuario usuario) { var sql = new StringBuilder(); sql.Append("UPDATE TBUSU SET " + Environment...
asked by 05.12.2018 / 13:52
1
answer

Policy Alias - What would it be? [duplicate]

Good afternoon guys, I've been studying C #, I've come to see about the using directive, and in the C # documentation it says it has 3 uses, one of 3 usage items says it's meant to create an alias for a namespace or a type, but what would i...
asked by 04.12.2018 / 18:34
1
answer

Calling a Modal via Html.ActionLink

I have a screen that does the user's password change. This screen shows the user name and clicking the name, it is directed to the screen to change the password. As I would do to make this call with a modal, I already have the scripts, but I...
asked by 30.11.2018 / 16:43
1
answer

Break apart date to load in javascript

I have in the DB a DateNode field, where it is stored in the format YYYY-mm-dd. I have a javascript function that scans the table by the last CPF. If there is registration for the CPF, then it mounts the fields in the form. It turns out that the...
asked by 19.03.2014 / 18:49
1
answer

Write a Json string in the database C #

I'm getting the data correctly, and getting them to separate correctly too, only problem is that I do not know how to use the values and be able to write to the database, could they help me? The image below shows how I'm getting the data and...
asked by 21.11.2018 / 13:53
0
answers

Switchery component does not work in a PartialView - Asp.Net MVC

I'm having problems with the data-plugin switchery (Remark bootstrap component) that does not want to work in partialviews. The interesting thing is that if it stays inside a normal view, it works perfectly, but when placed inside a modal window...
asked by 15.11.2018 / 14:38