Most voted "querystring" questions
The query string is the part of the URL that contains data to be transmitted to web applications such as CGI programs. Use this tag for questions involving your correct use, construction and programmatic manipulation, for example via Javascript.
Learn more…31 questions
Sort by count of
-
16
votes9
answers27569
viewsHow do I read Javascript URL values (Querystring)?
When accessing a page, for example /item?tipo=1&nome=po%C3%A7%C3%A3o%20de%20cura How do I get these URL values, decoding appropriately?
-
9
votes1
answer2490
viewsDoes the REST standard allow the use of query string?
Most frameworks I know use URL parameters as follows: /recurso/variavel For example /produtos/{nome} /produtos/{categoria} Some use between {} others <>, etc. To differentiate the searches is…
-
8
votes3
answers7789
viewsBuilt-in form action parameter is not passed via GET
I have the following HTML code, and in the action Seto the address obeying my query string: <form name="searchCard" class="serachCard" method="get" action="painel.php?spv=nav/buscarCard">…
-
5
votes2
answers7885
viewsGrab parameters passed by url on another page
I have this call to another page, passing 2 parameters. Response.Redirect("/frmPVFichaCadastral.aspx?CdProcesso=" + vhdfCdProcesso.Value + "&CdTipoUsuario=" + vhdfCdTipoUsuario.Value) How do I…
-
3
votes1
answer988
viewsHow do I remove the character limit of a URL by GET or POST
I have an error sending the form, it returns an error MaxQueryString. Is there any way to increase this number/remove this limitation? because on web.config a high value is already set and it is not…
-
3
votes1
answer148
viewsConvert Dynamic to query string
Is there any more "elegant" way to convert a dynamic for a query string? I’m currently doing with several Replace() but it’s not quite what I wanted. string data = new { email = email, password =…
-
2
votes1
answer1251
viewsHow to read Querystring parameters in Javascript
How do I collect arguments from an HTML page? Like I tried to use like C# / ASP.NET: var conteudo = Response.QueryString["usuario"]; Considering a query string as: /default.html?usuario=pt Then he…
-
2
votes1
answer4300
viewsRecover value from an HTTP query string
I have a URL where it returns an HTTP QueryString, and I need to retrieve the information from the URL and convert it into variables to make queries in the database. In PHP just use the $_GET[""],…
-
2
votes1
answer155
viewstransform Query String url to a Readable url for the user
I ever noticed that it was possible to turn a query string into something more readable for the user, like this: real url: site.com/roupas?categoria=vestidos for this (what the user sees)…
-
2
votes1
answer338
viewsGet URL value from a Dropdownlist
In my application I own a DropDownList that filters the search data. When filtering, it retrieves the value of the QueryString and save the value in the DropDownList (so that when changing page, the…
-
2
votes0
answers353
viewshtaccess configuration to capture all GET data from a query string
I rewrote my url rule as follows: RewriteRule ^(.+)$ index.php?path=$1 [QSA,L] In php I get the parameters of $_GET['path'] and configure my controller, action and parameters. $this->controlador,…
-
2
votes2
answers515
viewsParameter query string Asp.net MVC
I need to avoid in ASP.Net MVC that a user simply changing the page URL has access to other data. Example, it can access the page www.dominio.com.br/usuario/1 and I need to block him from simply…
-
2
votes1
answer79
viewsHow to have isset function using $queryString in php
I have a code in php that has the function of picking the parameter ?capa= with parse_str <?php $url = parse_url($_SERVER["HTTP_REFERER"]); parse_str($url["query"],$queryString);?> That and…
-
1
votes1
answer655
viewsUser-friendly URL with HTACCESS
I’m making my system that will use htaccess-friendly URL, only I’m having a question/problem. My HTACCESS is as follows: RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
-
1
votes1
answer106
viewsHow to capture parameters by XSL?
I’m modifying a form in Sharepoint and want to get the parms that are being passed in the url, someone has a suggestion? <xsl:element name='a'> <xsl:attribute name='href'>…
-
1
votes2
answers1363
viewsRecover query string with "+" character
I have in my controller, a method where I take a Query String, I decrypt it and use the data in my query. However, when the encrypted value has a +, he is not recovered by Request.QueryString. Soon…
-
1
votes1
answer759
viewsCan you change the value of a querystring parameter in javascript?
For example I have this querystring www.meusite.com.br?parametro=1. I wanted to exchange the value 1 for another value when a given function is called, without having to load the page again (if…
-
1
votes1
answer2298
viewsPass method parameters through the URL
How do I capture the parameters requested by the URL in a webservice? For example: I have the following webservice: http://localhost/teste/WebService1.asmx/Produto How to pass method parameters…
-
1
votes1
answer384
viewsHow to capture the query string of a Restful request
I need to get the parameters passed by the URI, for example: http://localhost/endpoint/param1/param2/param3 if param1 == "adduser" id = param2 name = param3 Example of a function that did not work:…
-
1
votes1
answer131
viewsConvert strings to boolean
I’m dynamically adding one javascript and its src need to pass some parameters... the following function creates this "querystring": var querystring = {a:'b',b:true,c:'d',e:false}; var query =…
-
1
votes1
answer104
viewsIspostback Asp.net
My Asp.net application (aspx) has two Label-type Controls that need to be filled with information from a Request Querystring. In Page_load I do the treatment so that the Controls of type Label…
-
1
votes1
answer33
viewsHow to receive querystring value in an action?
I am creating an API with ASP.NET Core and would like to know how to do a search via querystring, in case the URL sees something like /api/programas?nome=teste Like I would in my controller? Example…
-
0
votes3
answers259
viewsFix SRC Urls by HTACCESS
I am using URL friendly via HTACCESS and because I am using it the pages lose the Styles and js. Because the path (URL) is done as ex /category/pizza so it looks for src="category/pizza/style.css" .…
-
0
votes0
answers28
viewsOpen a query string and add the value to an input from an iframe
I have a page that contains an iframe with a form, I would like to be able to access a string query of the main page and add that value to an Hidden input that is in iframe. It is possible? Thank…
-
0
votes1
answer119
viewsHow to release a URL and Query String level with or without via . htaccess and others have an error 404?
With . htaccess I need to release a url level to block the others with error 404 being: /example (can) /example/ (can) /example/anything (can’t) RewriteEngine On RewriteRule %{REQUEST_FILENAME} !-f…
-
0
votes0
answers105
viewsImport or Require Qs.stringify inside Javascript script
It is possible to apply a import or a require in querystring.stringify to use it inside a pure javascript? What is the ideal way for this implementation below? Ex: <script> var qs =…
-
0
votes1
answer62
viewsError in function to return Querystring in Javascript
When using this function by calling the filter parameter of an error, instead of returning the value of the Querystring parameter it returns a Function. //Retorna os valores da querystring function…
-
0
votes0
answers16
viewsI would like to know the concept of Querystring , what is it ? , what is it for ?. I am in a class on flask and was introduced to me about Querystring
@app.route('/novo') #novo.html def novo(): if 'usuario_logado' not in session or session['usuario_logado'] == None: return redirect('/loguin?proxima=novo') return render_template('novo.html',…
-
0
votes0
answers17
viewsConvert a query string with array to object with Javascript
Hello :) I have a query string that I would like to transform into object, but this query string has an array that is converted as follows: &meuArray[0]=17&meuArray[1]=1 When I convert this…
-
-2
votes1
answer563
viewsHow to clear the query string after I already got the values I want?
I’m using Asp.net c#, and I wanted to clear the query string so it doesn’t look for the user, for example "http://meusite.com.br/Pagina1.aspx?parametro=Lucas"..... I take this name and use it in my…
-
-2
votes1
answer402
viewsBlock query string url - php
Good morning, My doubt arises because of increasing the security of my application. The scenario is as follows: A user with authorization sees the listing of several items (e.g., list-item.php), and…