1
how do you pass a parameter to another VIEW screen, without the user seeing it in the URL?
For example : I have a query screen that the user clicks on the table and is redirected to another screen, which is the screen that opens the information of the field that was clicked, in case it can be a code.
the url would look like this :
http://localhost:64654/Pim/romaneio/Index? pid=108491
I pass her by JS, so :
window.location = "Index?pId=" + $($(this).find('td').get(0)).text();
My problem is that I will need to pass a parameter, to indicate whether the screen fields may be enabled or not.
Passing it through the URL would leave application vulnerable to changes, how can I proceed?
Hello try the POST method: http://docs.jquery.com/Ajax/jQuery.post
– 13dev
Either way you will be vulnerable to changes. This is bad for security, you should validate this only on the server side.
– Jéf Bueno
There is another way to pass parameter between View and Controller?
– Anderson Apdo de Souza
you’re right @LINQ, try to check on the server side, try to encrypt if possible
– 13dev
@Andersonapdodesouza No parameter "pass" between views and controllers. Absolutely everything are HTTP requests, you need to be aware of this.
– Jéf Bueno
But for example, I have a table that lists values, then the user clicks on the value 1, and this value needs to lead to another screen that a method receives it and goes to the bank to search. In case I need to do all this inside my controller?
– Anderson Apdo de Souza