Questions tagged as 'mvc'

1
answer

View data is disappearing in a certain time

It's the following, so I realized the whole project follows the MVC Standard. I just have a big problem. The view of orders there is a simple refresh of 30 seconds, searching for new orders. So good! The problem happens every day at 9:00 PM,...
asked by 19.02.2018 / 03:16
1
answer

Create mask for a text [duplicate]

I need to return a value of CNPJ with a mask through Javascript for a text in a td tag of my html code. The value is returned from the default bd of CNPJ as in the code below: <tr th:each="cliente : ${clientes}" class="cliente"> <td...
asked by 22.02.2018 / 14:45
1
answer

Error listing data in DataTable

Good morning, I'm trying to make a simple listing of a table in a datafile of primefaces, but they are not listing anything. Follow the code so far. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3....
asked by 15.02.2018 / 12:50
1
answer

Avoid Refresh on page generate additional queries to BD MVC C #

The case is as follows. My ActionResult does a heavy query in the database and returns random data by business definition. The user can refresh the screen. If you update the page, you lose what you have done and the return of the query is dif...
asked by 17.02.2018 / 06:00
0
answers

Python - CTR class does not register in DB

Good evening. Application developed in Python 3.x Database: sqlalchemy. I'm trying to develop a simple product registration system in a SQL database. For that, I am trying to develop from the MVC Standard (Model, View and Controller). In...
asked by 01.02.2018 / 23:27
0
answers

Captcha on Controller Laravel

Good afternoon guys, I'm trying to implement Google Captcha in my controller, but the 500 error in the request The code works until return 2; From here you attempt to run the 500 error public function enviar(Request $request){ /...
asked by 01.02.2018 / 15:40
1
answer

Classes do not load! Script runs in xampp but does not run in LAMP / LEMP / VPS

Well, I made a very light and simple script. In xampp it runs normal, but when I upload to any server it will not work at all. I've tried the lamp , lemp (from Digital Ocean), the VPS (Da Dreamhost), but it really will not. p> The fi...
asked by 29.01.2018 / 05:31
0
answers

I can not print the bank data in my indexView

Good afternoon, I'm not able to list in my view Index the data already registered in the bank. My method in the Controller class looks like this: public class AlunosController : Controller { public ActionResult Index()...
asked by 03.02.2018 / 21:56
0
answers

Apply .css styles before displaying page

I do not have much experience in web programming. In the site I'm creating I had a problem with the graphical formatting of .css not being applied and creating strange effects when displaying the page, and I could not find a solution on the web....
asked by 24.01.2018 / 01:03
0
answers

Always load the login screen when the project runs

I created a login screen in a .NET Core project and I would like that same screen to be loaded as soon as I execute the project, to validate the user's authentication and, if it had a registry, I would go to the screen Project Index.    Obs....
asked by 19.01.2018 / 20:18