Questions tagged as 'mvc'

1
answer

fill a datatable with ajax and php mvc

Hi, I'm trying to fill a datatable in php but I can not do it, this is what I have: driver public function VentasXvendedor(){ $IdVendedor= strtoupper(utf8_encode($_REQUEST['IdVendedor'])); $arrayCli=array(); $dat...
asked by 30.05.2018 / 00:06
1
answer

How to decrypt data from an array codeigniter3

It happens that it encrypts some records with the 'encryption' library before saving them, until there, all good. I do the query and all the data is encrypted. What I want is to remove the encryption in the controller, before putting them...
asked by 12.04.2018 / 21:09
1
answer

@ Url.Action does not work in javascript file [closed]

From a view razor I can call links with this window.location = '@Url.Action("ReporteDictaminaciones", "Auditoria")' + '?Auditor=' + auditor Passing it to a JavaScript file stops working. Any Solution?     
asked by 13.04.2018 / 19:04
2
answers

How to update a specific field of a table without being related to another one by foreign?

I have a little problem with this code and maybe someone can help me. It happens that I have three tables, loan, item, inventory. the loan and item tables are related, but the inventory is not, the fact is that when I make a loan, I have to decr...
asked by 20.05.2018 / 06:41
1
answer

MVC C # create file and save it

Friends I am trying to create a txt and save it in my project, but I have some problems, I did something similar a few days ago with the difference that it is already a file to my method, in this I'm just creating it but I have problems to save...
asked by 19.05.2018 / 01:09
1
answer

Insert data in two different tables with MVC

I have two tables that are related, one of them depends on the information of the 1st table (payments depend on contracts). I just have to take a form to save the information. This is how I have the registry function in the Controller: publ...
asked by 26.02.2018 / 09:30
1
answer

Datatable Format after Reloading Data

I have this dilemma with Datatable. I load the data in the datatable and initialize perfectly with this code: $(document).ready(function () { $('.table').DataTable({ sScrollX: false, dom: 'Bfrtip',...
asked by 12.02.2018 / 16:48
1
answer

Hide @ Html.ActionLink in @foraech with Razor

My problem is that I want to hide the @Html.ActionLink from this view: <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.Subject.Name) </th> <th> @Html.DisplayNameF...
asked by 03.04.2018 / 03:03
1
answer

mvc recover data from view and refresh

I have only one view in my project, of which the user has to enter a client name to look for it in a mailbox. <form action="registrarCliente" method="post"> <input id="textCliente" name="textCliente" /> <input id="btnAdd" type...
asked by 07.02.2018 / 10:36
1
answer

How to make the text appear in a new line in a table

I'm working with mvc, but when I show a table it appears like this link This is my view <table class="table"> <tr> @for (int i = 0; i < Methods.CurrentTable.GetColumns().Count(); i++) { <th> @...
asked by 03.08.2018 / 23:54