query-string

Mod rewrite multiple languages

Hi all, Alright im doing a site which is available in multiple languages. I have ran into some problems with my mod rewrite. I'm trying to do this: Normal page without extra querystrings: /en/whatever And the page with problems (with querystrings): /en/dashboard/project/projectid And my .htaccess: RewriteRule ^en/(.*)$ $1?lang=en [N...

I have a url in the format www.abc.com/mypage#yourId=ASDF2345. How to read the value of yourid using c#

In my application i have a url in the format www.abc.com/mypage#yourId=ASDF2345. How can i read back the value of yourId parameter from the Request object in asp.net , c# ? If it would have been www.abc.com/mypage?yourId=ASDF2345, then i would have got this from the QueryString collection in the Request object. But there is a # be...

mod_rewrite: How to search and replace characters in a query string?

Possible Duplicate: Rewriting an arbitrary number of path segments to query parameters I want to replace every = and & in my %{QUERY_STRING} with a / via mod_rewrite Example: www.mydomain.com/path/?value=1&value=2 should become www.mydomain.com/path/value/1value/2/ No matter, how many values are in the url and how they ar...

ASP.NET MVC Create querystring from form

I am trying to create a simple search box that results in something like http://www.example.com/Search?s=searchTerm I have the routing setup so that it accepts a url like this, and does the right thing. The problem I'm having is getting the form to create the querystring. I have tried many variations of: <% using (Html.BeginForm("Sear...

Custom jQuery autocomplete without query strings

I'm in the middle of constructing a custom autocomplete using jQuery because my site cannot use query strings. (I'm using Codeigniter, and despite the many various configurations I've tried, I can't get it to accept query strings for just the ajax search pages.) I tried to find a ready-made solution through Google and couldn't, but wou...

Flash AS3, Redirect after movie plays - with php driven querystring.

Hi folks, I've got a situation where I have a visitor arriving at a php page with a ID key. They then navigate to page 2 where they key id is carried along in a querystring variable. i.e. http://www.mysite.com?x=abcde12345 Page 2 has a flash video on it - that is playing a movie. Once the movie stops playing I want flash to redir...

how to exchange variables between two html pages

I have two html pages example1.html and example2.html, how will i pass variables from example1.html to example2.html using query string and retreive that variable in example2.html without using any serverside code ...

How do i pass a javascript variable in querystring from one html page to other

I have two html pages example1.html and example2.html ,how can i pass a javascript variable username from example1.html to example2.html in querystring. <script type="text/javascript" > $(document).ready(function() { $('#SubmitForm').submit(function() { var username = ($("#username").val()); .........

An Encoding Issue?

Hello all, I think I have a URL encoding issue. I need to open a window using Javascript and pass a SQL Select query to it. So I have done this: window.open('view_query.php?sql_query=' + query + '&db_name=' + db_name); This has worked for me, but I have a query that breaks this: SELECT a FROM table WHERE field like '%adhoc%' Now ...

Zend framework's getRequest()->getQuery() won't bring query string on localhost

I have the following code, which works fine on live site, but not on localhost. $status = $this->getRequest()->getQuery('status'); I have a URL like this: http://localhost:888//questions/ask?status=10 I printed the value of status, which is always nil. I am new to Zend framework and could not find a solution to this on net, looks s...

querystring in asp.net

how to use querystring in asp.net. ...

Best way to toggle Div Visibility depending on Query String in c# ?

Hi There, I have about 20 div's in an aspx page. At any time, only one of them will be visible. I need to decide which div to show depending on the Query String. http://...?mode=&lt;ModeName&gt; The easy way would be to start with all div's invisible, then just put the QueryString in switch and write out cases for all the possible Mo...

Call JQuery from C# PageLoad

Is there any way how to call JQuery function from PageLoad C# file? Basically I have some selects, some inputs which are not generated by C# code but are defined in .aspx file manually. When I send form get query to another page I would like to set same variables that are defined in querystring. I know how to do that when I use runat="...

HtmlPage.Document.QueryString within a UserControl.

A) If I check the querystring within a Navigation Page, things work great. B) But if I check the querystring within a UserControl (which is delcared in the Navigation Page), the querystring shows it is empty. Question) If there a way to check for a querystring by the UserControl (i.e. a child control who ultimately has a Navigation Pag...

What is the best method of maintaining a large query string?

In several PHP applications I'm making I need to maintain a very long query string for filters for a table. I only want to change one or more GET variables per filter change, while the rest of the query string stays unchanged. I have a few ideas on how to do this, including using javascript to build the query string every time a filter ...

Change the url of asp.net page from code behind.

Hi All, I am trying to change change the url of current aspx page to the other url on a click of button. Using Request.Url.AbsoluteUri i can get the url but is it possible to modify?. If yes, what actions will it take i mean will it be a new request or a post back. Please let me know your views. Thanks, Mehul makwana ...

How do you form an array in a JSON object for a query string?

When sending an array in a JSON object in a query string, is each array element supposed to have the same key? For example, if I have this JSON object: {"sodas[]": ["coke", "sprite", "fanta"]} Should the query string look like this, with all the keys exactly the same (sodas%5B%5D)? sodas%5B%5D=coke&sodas%5B%5D=sprite&sodas%5B%5D=fan...

Attack on ASP site that uses a SQL server database

We have a survey site that was apparently attacked. The symptoms are identical to what was described on the following page on this site: http://stackoverflow.com/questions/3775964/xss-attack-on-the-asp-net-website. I found multiple entries in our IIS logs that included the malicious code: < / title> < script src = http : // google-s...

Why is there one of my select options that put nothing in the query string at form submission?

This is my html: <select name="results"> <option value="0">Vis alle</option> <option value="10">10 resultater per side</option> <option value="20">20 resultater per side</option> <option value="30">30 resultater per side</option> <option value="40">40 resultater per side</option> <option value="50">50 resul...

301 Htaccess RewriteRule Query_String

Problem: Visitors open the url website.com/?i=133r534|213213|12312312 but this url isn't valid anymore and they need to be forwarded to website.com/#Videos:133r534|213213|12312312 What I've tried: During the last hours I tried many mod_rewrite (.htaccess) rules with using Query_String, all failed. The last message in this topic shows a ...