Firefox:
http://example.com/about/#anchor -> http://www.example.com/about/#anchor
Internet Explorer 6-8:
http://example.com/about/#anchor -> http://www.example.com/about/
Why is the anchor dropped in IE and what can I do about it? (Query string is not dropped, only the #xyz part)
Is a PHP header or javascript redirect my only option? ...
I have a problem when I send IE to the following location: http://fdvweb.mal/db/historikk/db_historikk_liste.asp?SQLfilter=SELECT TaKompHistorikk.*, TaKomponent.KompNummer, TaKomponent.KompNavn, TaKomponent.KompPlassering FROM TaKomponent RIGHT OUTER JOIN TaKompHistorikk ON [TaKomponent].[KompId]=[TaKompHistorikk].[KompHistorikkKompId] W...
I have a page request with a QueryString, say http://www.xyz.net/Orders.aspx?OrderID=1. The page is displayed in a browser. Now there is an asp:LinkButton on the page which should enable the user to open the page without the QueryString (as if he had entered http://www.xyz.net/Orders.aspx directly in the browser's address bar).
I had tw...
I need to pass a single variable in a querystring from one application (in PHP) to another (in ASP.NET). It's a one way transfer...That is I need to encrypt it in PHP and decrypt it in ASP.NET (c#).
I'm barely a newbie on PHP and I'd like not to have to do more than add a tag to the page that needs to do the passing.
The data will be...
I am looking to create a 301 redirect based purely on a query string see b
OLD URL: olddomain.com/?pc=/product/9999
New URL: newurl.php?var=yup
My normal way of doing this would be
redirect 301 pc=/product/9999 newurl.php?var=yup
But this time I am trying to match a URL that that only contains the domain and a query string...
Wha...
We send out registration urls to clients via email. Some of the email clients are turning the url into
url <url>
I think it may be happening when users forward the email onto themselves at which point the email client re-formats the original email (maybe)
E.g.
https://my.app.com/login.aspx?param=var
Becomes
https://my.app.com/logi...
How can i rewrite the URL to have application name + querystring
for example i have a web application with the following querystring
mywebsite/default.aspx?UserName=xyz
How can i have URL with the folllowing
mywebsite?xyz
i have managed to implement RewriteModule using HttpApplication on Begin_request event and currently i can use ...
I'm trying to figure out how to create personalized urls for double-byte languages.
For example, this url from Amazon Japan has Japanese characters within the querystring (specifically, the path):
http://www.amazon.co.jp/風の谷のナウシカ-DVD-宮崎駿/dp/B00005R5J3/ref=sr_1_3?ie=UTF8&s=dvd&qid=1269891925&sr=8-3
What I would like to do ...
Hi, all
Recently, I altered my web server lighty to nginx. And now, Struggling with some problems.
First, I have a site in nginx which only rewrites urls and redircts them to a new domain, and this site has exactly no file in its root directory.
I put some rewrite rules (just string rules, no querystring) in my nginx.conf
list 1
rewr...
Hey,
I want to add a parameter to a URL but currently it isnt showing in the $_GET global.
A snippet from my htaccess file is as below:
RewriteRule ^account/blogs/([0-9]+)/([^\s?]+)/?$ /account/blog.php?blogId=$1 [L,QSA]
Then in my php code i want to add a link such as:
/account/blogs/1/ThisIsWhereTheTitleGoes?delete=1
The wil...
Hi All,
I want to dynamically populate a link with the URI of the current request, but set one specific query string parameter. All other querystring paramaters (if there are any) should be left untouched. And I don't know in advance what they might be.
Eg, imagine I want to build a link back to the current page, but with the querystri...
I need a hidden input to contain the value passed by the querystring via a JSP's URL.
The URL looks like... http://nowhere.com/myapp/blah.jsp?key=12345
The JSP looks like...
<html>
<body>
<input id="key" type="hidden" value="<%=request.getParameter('key')%>" />
</body>
</html>
This causes a 500 error...
SEVERE: Servlet.service() fo...
.Net's System.Web.HttpUtility class defines the following function to parse a query string into a NameValueCollection:
public static NameValueCollection ParseQueryString(string query);
Is there any function to do the reverse (i.e. to convert a NameValueCollection into a query string)?
...
It may sound strange, but in my PHP application I need to check if the same variable name has been declared more than once in the query string or POST variables, and return an error value if this is the case. If my application doesn't return an error in this case, it fails a compliance check.
When accessing vars using $_GET, $_POST, et...
What should I use:
/findby/name/{first}_{last}
/findby/name/{first}-{last}
/findby/name/{first};{last}
/findby/name/first/{first}/last/{last}
etc.
The URI represents a Person resource with 1 name, but I need to logically separate the first from the last to identify each. I kind of like the last example because I can do:
/findby/n...
This seems like it should be pretty straight forward, but I'm apparently confused.
I have a List view that displays a paged list. At the bottom I have a set of actionlinks:
<%= Html.ActionLink("First Page", "List", new { page = 1} ) %>
<%= Html.ActionLink("Prev Page", "List", new { page = Model.PageNumber - 1 }) %>
<%=...
I have the following problem
I have a web framework built with classic asp that saves the page state in hidden textboxes, and then issues a submit to itself.
Before submitting, we have a javascript functions that saves the action in a hidden "action" input, and then performs the submit.
The page loads the state from those hidden texts...
Im trying to create a datapager solution in asp.net like the one on the http://channel9.msdn.com/Posts/ website.
The solution should work like this:
Listview inside a updatepanel (partial rendered / updated) based
on hashed pageindex from querystring
Support for navigation history points, so if someone goes to a
detail page of one the...
How can we collect a query string value in javascript.
my script is like follows
http://192.168.10.5/study/gs.js?id=200
here i want to collect the id value in my gs.js script file.
For this i am using
function getQuerystring(key, default_)
{
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
...
Hi People,
The problem if someone types into the search box a location it goes through to that location page but if they type in a location thats not found or they dont type anything in I need it to redirect back to the homepage (index.asp) and display "whoops we couldnt find that" in the search box (input field)
This is the vb
Ca...