query-string

Alternative to query string and cookies when sending data to server?

I have a small (or perhaps not so small) issue with some ASP.NET/Castle Monorail sites for a product I work on. This is a fairly legacy system (written well before my time), and it uses GET requests with a considerable amount of information in the query string. We have recently run into query string length limitations, and for the amount...

Is it possible to skip a HttpHandler if there is no querystring?

I wrote a dynamic image resizer as a HttpHandler. It's automatically called on anything with an image extension, so for example: http://www.mysite.com/picture.jpg?width=200&height=100 will run the handler and return a thumbnail image with the proper response headers. However, I want the handler to let a request 'pass through' if it...

ASP.NET MVC - Getting Html.BeginForm() to remember Querystring params when submitting via GET

I have a form rendered via Html.BeginForm(), it exists as a component in the Master page so that it appears on every page in the application. I have done this using Html.RenderAction() from Mvc Futures assembly. It's a simple search form that updates some items in the same component underneigh the search form itself, and performs a GET s...

aspx with Ajax: How to send checkboxlist values to query string parameters?

I am using jQuery load function to load the HTML response of an aspx page. I call the page by appending querystring parameters to the end. I have a problem though. I have a checkbox list (multi selectable) and couldn't figure out how to send these selections. If it was server side, I would make a custom class carrying all the information...

Query string parameters do not seem to work with window.open

Hello everyone, I try to open multiple browser windows using javascript and the window.open() function. I want to pass a parameter through the query string to my new window like this: window.open('http://www.myfoo.com/foopage.aspx?fooparm=1', '_blank'); This opens a new window with the correct address in the address bar but the brow...

Random Querystring to avoid IE caching

It is a well known problem that IE caches too much of html, even when giving a Cache-Control: no-cache or Last-Modified header to everypage. This behaiviour is really troubling when working with querystrings to get dynamic information, as IE considers it to be the same page (i.e.: http://example.com/?id=10) and serves the cached versio...

Problem with slash within a query string

I'm using the WebRequest class to make a request to some site. The query string contains a slash (/), which cause to the url to be cut by the site, because it doesn't see it as part of the query string. The query string is: "my params / separated by slash". The request: var request = WebRequest.Create("http://www.somesime.com/q-my+pa...

IE - Certain querystring Hangs Page

I have a site that has worked fine for a while. Recently, any form passed as a querystring ('GET') that has the words "SELECT", "FROM", and "WHERE" in it causes the page to hang and, eventually, give a "Page not found..." error. It looks like this only happens with IE, not Firefox, but has been confirmed using several clients. Also, i...

Rewrite Query String

I have this URL: oldsite.com/profile.php?uid=10 I would like to rewrite it to: newsite.com/utenti/10 How can I do that? UPDATE: I wrote this: RewriteCond %{QUERY_STRING} ^uid=([0-9]+)$ RewriteRule ^profile\.php$ http://www.newsite.com/utenti/$1 [R=301,L] But $1 match the full query string and not just the user id. ...

ClickOnce problem with Update and the Query String

I'm working on a ClickOnce deployment where the application accepts a query string parameter. The problem is, ClickOnce is seeing the query string as a different URL so when I try to launch the application again without the query string or with a different query string I get the error saying it was installed from another location. Here ...

how to remove characters from a string in sqlite3 database?

i have a string like this a) Text in my sqlite databse..i want to remove a) from databse..anyone know a query for this? ...

Is it bad to paginate with query strings?

i.e. http://www.somesite.com/subject?page=3 If query strings are used to control the pagination, won't search engines only be able to index the first page (i.e. the page without the query string)? This is usually how I've seen pagination done, but I'm wondering if there is a better way for search engine indexing? ...

Showing completely different output based on the query-string

I am trying to learn asp.net (vb.net) and I'm having some trouble. I want to change a pages content based on the querystring. In classic asp I would do: <% If request.querystring("page") = 1 THEN %> -entire page- <% Else %> -different page- <% End If %> The closest I could get in .net is Sub Page_Load(ByVal Sender a...

Can I use mod_rewrite to redirect to a URL with a zero-padded parameter?

I'm trying to use mod_rewrite to redirect URLs from a URL from an old host to a new one that uses a different URL format. The new host zero-pads the ID to six digits as follows: Old URL: http://www.example.com/script.cgi?page_id=123 Needs to redirect to: http://archive.example.com/000123/ This is what I have so far: RewriteCond %{...

Problems with Request.QueryString. Reads cache instead of URL

I'm trying to retrieve the value of myID from my URL. I'm testing this using <%=Request.QueryString["hotelid"] %>. It only works the first time the page is loaded either in a new browser, or if my project has been rebuild. My URL string is typical: http://my/path/to/site/?hotelid=2. If I try <%=Request.QueryString %>, I'm also gettin...

problems getting values from query string

My below function that is copied from another function that works fine. Should get values from the query string and turn them into a date: function updateShift() { echo $name = $_GET['shift_name']; echo $start_date = date('Y-m-d H:i:s', strtotime("{$_GET['start_hours']}:{$_GET['start_minutes']} {$_GET['start_ampm']}")); ...

IE6 Losing Querystring

I have a page that grabs values from the query string using javascript window.location. This works fine when run from a webserver but if I run it locally using IE6 by putting this in the address bar c:\mysite\index.htm Any query strings the site creates get lost and window.location just contains the location upto .htm. I realize the ...

asp.net query string returning null.

I am getting the querystring value during the first Page_Load() of destination page. But the querystring is returning null during subsequent postbacks(when I am pressing a button) so that my username variable becomes null. What to check for? ...

Cakephp change URL behaviour

Hi, We are developing a site using CakePHP. We have a windows IIS server (shared hosting) with PHP5, that does not support .htaccess or mod_rewrite but still we have the site up and running and developed a lot of things. The current URL structure is something like this: mydomain/index.php/user/add We want to change this to something l...

Issue with passing querystring parameters via Http Get to an iframe in IE

Hi, This is a follow up to my previous question: Problem passing parameters via Iframe in IE. Which was never solved. Here's the core of it: I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe s...