Questions tagged as 'querystring'

2
answers

Parameter query string asp.net MVC

I need to avoid in ASP.Net MVC that a user simply by changing the URL of the page has access to other data. Example, it can access the page www.dominio.com.br/usuario/1 and need to block that it simply by changing the end ( www.domi...
asked by 21.03.2016 / 04:26
0
answers

Configuration of htaccess to capture all the GET data of a query string

I rewrote the rule in my url as follows: RewriteRule ^(.+)$ index.php?path=$1 [QSA,L] In php I get the parameters of $_GET['path'] and set up my controller, action and parameters. $this->controlador , $this->acao...
asked by 04.09.2015 / 18:12
1
answer

Pass parameters to the method by URL

How do I capture parameters requested by the URL in a webservice ? For example: I have the following webservice: http://localhost/teste/WebService1.asmx/Produto How do I pass the parameters of the Produto method? To make the...
asked by 26.10.2015 / 02:18
1
answer

Is it possible to change the value of a parameter in a querystring in javascript?

For example I have this querystring www.meusite.com.br?parametro=1 . I would like to change value 1 to another value when a certain function is called, without having to load the page again (if possible).     
asked by 18.09.2015 / 22:11
2
answers

Retrieve query string with character "+"

I have in my controller, a method where I get a Query String , decrypt it and use the data in my query. However, when the encrypted value has a + sign, it is not recovered by Request.QueryString . I soon get an error trying to decr...
asked by 06.02.2015 / 13:00
1
answer

URL friendly with HTACCESS

I'm doing my system that will use friendly URL with htaccess, but I have a question / problem. My HTACCESS is as follows: RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?p...
asked by 21.07.2014 / 04:06
1
answer

How to catch parameters by XSL?

I'm modifying a form in Sharepoint and I want to get the parms that are being passed in the url, does anyone have a suggestion? <xsl:element name='a'> <xsl:attribute name='href'> http://smallserver:777/tools/geraDoc2.aspx? <...
asked by 29.07.2014 / 21:23
1
answer

IsPostBack asp.net

My asp.net application (aspx) has two Label controls that need to be populated with information from a Request QueryString. In Page_Load I make the treatment so that Label-type controls receive this information and actually receive it, but it do...
asked by 25.08.2017 / 03:30
1
answer

Convert strings to booleans

I'm dynamically adding a javascript and to its src I need to pass some parameters ... the following function creates this "querystring": var querystring = {a:'b',b:true,c:'d',e:false}; var query = Object.keys(querystring).map((ke...
asked by 10.04.2017 / 00:11
0
answers

Import or Require qs.stringify inside JavaScript script

Is it possible to apply a import or require in querystring.stringify to use it inside a pure javascript? What is the ideal way to implement this? Ex: <script> var qs = require('qs'); let data = { email: email, password: p...
asked by 18.09.2018 / 02:02