All Questions

2
answers

How to pass variables from the Controller to the View in ASP.NET MVC 4.5?

I'm pretty familiar with MVC in PHP where I can pass the values to view from the controller as follows: public function Index(Users user) { return View('index') ->with('user', $user); } Or to return validation errors: p...
asked on 24.02.2016 / 17:09
1
answer

Django generating strange code

I'm using visual studio community and I created a web project with Django, but when I make the homepage, it's generating this code: AndthecodeIhaveisthis:{%loadstaticfiles%}<!DOCTYPEhtml><html><head><metacharset="utf-8"...
asked on 06.05.2016 / 04:07
2
answers

Friendly url between containers / images docker

I have some projects ready to use Docker, however they will be in separate images. The question is: Can other images be accessed through a friendly url? Example: Primary container is in www.teste.com And the others are accesse...
asked on 06.05.2016 / 17:29
1
answer

Counter of characters typed in a textarea

I have this text box to be validated, should I enter the amount of remaining characters and display these remaining characters in the span, could they help me? <div class="novaLinha"> <div> <label for="txtVoce">...
asked on 13.02.2016 / 21:03
2
answers

Deletion of related data - Entity Framework and C #

Hello, Using the same structure I've been presenting here for some time now, I've come to you for help now to delete the related data. Follow the entities .. public class Artista { public int ArtistaId { get; set; } public string No...
asked on 13.02.2016 / 16:06
1
answer

How to multiply uploaded files with Ajax?

I'm trying to upload multiple files using ajax and I came across the following problem, at first when I uploaded with just one file it would return me in php the array $_FILES with the name of my file, so I could move to my temp folder....
asked on 25.01.2016 / 18:39
3
answers

Calculate parent and child totals

Friends I have 2 models. Orders have several details. I use cocoon to create the forms. The order model has a total that is the sum of the totals of the child models. What I would like to know is how best to implement a sum in the child and then...
asked on 23.02.2016 / 22:32
1
answer

Two dependent combobox using linq to sql

How do I populate two combobox's with linq to sql where in a combobox for example I have countries and in another I have cities? How do they automatically change the values? I leave the image below as I filled out one, if there are any errors an...
asked on 06.05.2016 / 02:16
2
answers

Char pointer or char array?

There is a program I took in a company where pointers of char , type char* , and then allocated a memory for it with malloc , done the operations and in the end deallocated this memory. Usually receives all characters, up to ma...
asked on 03.03.2016 / 14:21
1
answer

Calculate DUMP import time

I would like to know, if possible, how to calculate approximate the import time of a Dump . It could be something considering the following items: DUMP size in GB. Tables Amount. Number of records and (or) rows / columns per table....
asked on 27.01.2016 / 14:31