query-string

SharedObject (Flex 3.2) behaving unexpectedly when query string present in URL

Summary: The behavior detailed below seems to indicate that if your app at www.someplace.com sets/retrieves data via a SharedObject, there is some sort of .sol collision if the user hits your app at someplace.com, and then later at someplace.com?name=value. Can anyone confirm or refute this? I'm working on a Flex web app that present...

C# ASP.NET QueryString parser

If you have been looking for a nice and clean way to parse your query string values, I have come up with this: /// <summary> /// Parses the query string and returns a valid value. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key">The query string key.</param> /// <param name="value">The va...

Chrome Doesn't Support QueryString

Dear all I am Extract the Data from the link. It works fine in firefox,But GoogleChrome didn't support.This functionality. Is there better way or alter procedure to extract the query string contents My Link http://safalra.com/web-design/javascript/parsing-query-strings/ <script type="text/javas...

URL query string convention for multiple sort

I have a RESTful web application that supports multiple sort fields on a collection of items. Is there a common convention for encoding these sort fields into the query string of a URL? I'm considering a pattern like the following: http://myapp.com/books?sort=author:asc,datepublished:desc&amp;count=12 This would sort the collection o...

What exactly does this url mean?

I am using different analytics tags in one of our web applications. Most of them call a javascript code for tracking. Some tags have url of gif image with querystrings. Example : http://www.google-analytics.com/__utm.gif?utmwv=45.542 What exactly does this url do? How do they get the values from querystring? Update: (After reading s...

how do i access query string params in asp.net mvc?

I want to have different sorting and filtering applied on my view I figured that i'll be passing sorting and filtering params through query string <%= Html.ActionLink("Name", "Index", new { SortBy= "Name"}) %> this simple construction allows me to sort. view comes back with ?SortBy=Name in query string now i want to add filtering...

How can encode a query string so that it is the value of another query string in javascript?

I have a javascript function which passes as a query string value another query string. In other words, I want the query string to be: http://www.somesite.com/?somequery=%3fkey%3dvalue1%2520%26%2520key2%3value3 However, if I redirect like this: var url = 'http://www.somesite.com/?somequery='; url += escape(?key=value1&key2=value2); ...

What is the best alternative for QueryString

We heard a lot about the vulnerabilities of using QueryStrings and the possible attacks. Aside from that, yesterday, an error irritated me so much that i just decide to stop using QueryStrings, i was passing something like: Dim url As String = "pageName.aspx?type=3&st=34&am=87&m=9" I tried to Response.Write(url) in the redirecting...

Whats the best way to manage QUERY_STRING in php?

One of my sites has some very complicated sorting functions, on top of a pagination, and the various variables add up to a pretty complex URL, which is a huge pain to manage. Is there a way to manage the QUERY_STRING efficiently? By this I mean... if the url is index.php?catid=3&sort=date&year=2009&page=2 and I wish to have the user ju...

Multiple params in http get request

Are urls of the form http://asdf.com/something.do?param1=true?param2=false valid? I don't think the second ? is allowed in valid urls and that it should instead be an ampersand (&), but I'm unable to find anything about this in the http 1.1 rfc. Any ideas? ...

Keep controls persistent when the querystring changes

Is there anyway to do a postback with a new querystring that doesn't reset all of the controls on a page to their defaults? I have a page named "default.aspx" with several checkbox controls on it. I can check them all I want and they will remain persistent (meaning they keep their checked or unchecked state) on postbacks to "default.aspx...

Delimiter to use within a query string value

I need to accept a list of file names in a query string. ie: http://someSite/someApp/myUtil.ashx?files=file1.txt|file2.bmp|file3.doc Do you have any recommendations on what delimiter to use? ...

How do I access the variables from urls that come from the GET method in ASP.net?

Asp.net has turned out to be alot easier to use than PHP (so far). However, I have been searching for a while and simply cannot figure this out. How do I get the variables that are contained in the url of my page (that originate from a form that had the method "GET") and utilize them? For example, my page would be www.example.com/index....

How do I get data from the query string in asp?

Hello all. I am working on a project for an IT class where I need to pass in a value on the query string in a php page and read it into a hidden field on an ASP page.I currently am passing the parameter fine from the php page to ASP, but I am pretty new to .NET in general. How do I get the data out of the string and into a variable in C#...

JavaScript query string

Is there any JavaScript library that makes a dictionary out of the query string, ASP.NET style? Something that would be used like: var query = window.location.querystring["query"]? Is a "query string" called something else outside the .NET realm? Why isn't location.search broken into a key/value collection already? EDIT: I have writ...

<> And Not In VB.NET

I'm having the exciting task of finding out about VB.NET's <> and Not operators. Not - I'm assuming by my small use of it - is the functional equivalent of ! in languages such as C# and <> being equivalent of !=. In VB.NET a common problem is doing Boolean expressions against objects that don't have a reference, it appears. So if we d...

Dynamic querystring in JRXML

Hi everyone, I'm trying to build a report that would be smart enough to modify slightly its sql query based on an input parameter of some sort. For example if that special modifying parameter value is "1", it adds a field in the select and adds a group by clause to the query. I've looked into java expressions, but they don't seem to...

Retrieving Values from URL Rerouting on the target page?

Ok... got URL Routing working just fine, but cannot figure out how to actually read the values in the target page. One example here shows using the RouteValue object from the RequestContext. Now all of these are in the System.Web.Routing namespace, but everyone seems to be connecting these to MVC only. Where does the RequestContext co...

add querystring to a postbackurl property of asp:button

I've got a textbox and a button on a form on default.aspx and in my DownloadHandler.ashx I am getting the value I need from HttpContext.Request.Form("txtURI"): <asp:TextBox ID="txtURI" AutoPostBack="true" runat="server"></asp:TextBox> <asp:Button ID="DownloadButton"...

file-get-contents() returning "failed to open stream: HTTP request failed!"

Help, I am having problems calling a url from PHP code. I need to call a service using a querystring from my PHP code. If I type the url into a browser, it works ok, but if I use file-get-contents() to make the call, I get: Warning: file-get-contents(http://.... ) failed to open stream: HTTP request failed! HTTP/1.1 202 Accepted in ...