query-string

Does Grails have a neat way of copy domain properties from a URL query string?

I know Grails has a map based constructor for domain objects, to which you can pass the params of a URL to and it will apply the appropriate field settings to the object using introspection, like this... myDomainInstance = new MyObject(params) I was wondering whether there was an equivalent method of taking the params and applying the...

How do I pass the # symbol as part of a GET querystring in the URL?

I am using javascript (using jquery) to pass a # symbol as a GET parameter via AJAX call. The problem right now is that the # symbol is breaking up my querystring. Any help appreciated. Thanks! ...

Wordpress: if (url is mysite.com/sitemap) do this...

Previously, I've been creating my sitemap page with site.com?action=sitemap That allowed me to easily test on my index page for a sitemap request with... $_REQUEST['action'] However, I'd like to instead create the link to the sitemap with site.com/sitemap And I'd like to know how I can parse the request for the appearance of "/sitem...

Why is the call to Request.QueryString["ReturnUrl"] returning NULL? It is present in the URL?

(This is a more narrow question) In my asp.net MVC action, I am looking if the ReturnUrl value is in the URL. My Url looks like this: http://localhost:56112/user/login?ReturnUrl=/user/settings In my action, I am looking if that querystring value exists, and it is returning NULL?? How can this be? The code: if(Request.QueryString["...

How to pass flashVars in to Flash and then back out as a query string

I am asking this question as a complete Flash novice, so please do point out if I'm doing anything wrong here (I suspect I am). I have a Flash MPU size animation with a link in it which has been created by using a full sized transparent layer as a button (is that the correct way) with the following ActionScript: on(release){ getURL("...

How to use QueryString

How can I have different URL ids like www.somewebsite.com/index?theidentifier=34 only in ASP.NET MVC not Webforms. ...

Query String Parameters make my app at risk?

I'm writing an Asp.Net WebForms app where I am calling an edit page an passing in the data about the record to be edited using query string parameters in the URL. Like: http://myapp.path/QuoteItemEdit.aspx?PK=1234&DeviceType=12&Mode=Edit On a previous page in the app, I have presented the user with a GridView of screened item...

is a query string with a / in it valid?

Due to a miscommunication with an affiliate partner we're working with the URL they call on our server has been mixed up. This is the URL they are supposed to call on our server : /AAAAAAAA/?b=CCCCCCC unfotunately it was implemented in their system as this ?b=CCCCCCC/AAAAAAA I can easily parse out the components, but I'm worried...

vb.net sending value from one aspx to another

this is my vb.net code - in the subroutine i have - Private Sub xxx() Sqlstr = "SELECT * FROM table" ExecuteNonQuery(Sqlstr) SqlCmd = New SqlCommand(Sqlstr, SqlCnn) SqlDR = SqlCmd.ExecuteReader If SqlDR.HasRows Then Do While SqlDR.Read() r = New TableRow ...

querystring to a hyperlink in vb.net or maybe another solution

I am new to vb.net. Let me explain the two aspx pages that i have. First one is a table with results populated from the sql server backend. The first holds the "FirstName". I want this to have a hyperlink, so when i click on this, it should goto the second aspx page and show all the data in sql server for that "Firstname". the data is i...

how can I fill data to extjs component using querystring?

for example if I have extjs ComboBox, and I have URL like http://localhost:8080?param=value1,value2,value3 how can I access this << param >> value in ExtJS, so that I can covert it into something like Ext.data.Array or .... ...

Best practice for URL redirection in ASP.NET web application

I have an asp page (Default.aspx) that displays the diff between two text files. It contains two drop down lists (ID="File1" and "File2" respectively) and a button (ID="Submit"). It also contains a Literal control with ID "Result". The contents of the list button are populated based on the files present in the physical application pat...

querystring picking up last row in table and not specified row. vb.net

i have created a table with 2 fields in vb.net as follows - Do While SqlDR.Read() TR = New HtmlTableRow TD = New HtmlTableCell TD.InnerHtml = SqlDR("name") TR.Cells.Add(TD) TB.Rows.Add(TR) Loop SqlDR.Close() Data looks lik...

Encryption to alphanumeric in System.Security.Cryptography

I have a project which requires encryption of customer ids. The encrypted value is used as a query string value for a website which then returns a personalized form for completion. The problem I'm having is that the website we are working with has a security policy which disallows non-alphanumeric characters from a query string. I'm...

Is it possible to fire an onclick event in an url or query string?

I have a web page with a off-site links whose onclick events are handled by jQuery. The jQuery fetches the content of the page the link points to and inserts it into a div. What I would like to do is be able to give somebody an url for this page that would cause the onclick event for one of the links to fire, thus loading the div with t...

What's the difference between Request.Url.Query and Request.QueryString?

I have been tracking down a bug on a Url Rewriting application. The bug showed up as an encoding problem on some diacritic characters in the querystring. Basically, the problem was that a request which was basically /search.aspx?search=heřmánek was getting rewritten with a querystring of "search=he%c5%99m%c3%a1nek" The correct value (...

Elegant solution to read and transform query string in php?

I have a query string such as this: file.php?search=keyword+here&genre1=1&genre4=1&genre19=1&genre181&director=436&actor=347&search_rating=3 I need to extract all the genres mentioned in the string, in this case its genre1, genre4, genre19 and genre18 and output them into a string such as ge1_ge4_ge19_ge18 What would be a good ...

Why doesn't javascript have better support for cookies and querystrings?

It seems like cookies and querystrings are firmly established in the web world. Nevertheless, javascript makes you do all kinds of splits and parsing to get at the keys and values. Anyone have any insight on why there isn't more intuitive native support for things like cookies and querystrings? Admittedly, there are plugins and framewor...

How can I match query string variables with mod_rewrite?

Suppose I have URLs with query string parameters like these: /index.php?book=DesignPatterns&page=151 /index.php?book=Refactoring&page=157 Using mod_rewrite, how can I redirect them to SES URLs like these? /DesignPatterns/151 /Refactoring/157 ...

Rails Routing with Query String

I have a problem where I need values passed in from a GET request and I don't know how to set up the routing definition. My Category object has a type(string),a color(string) and many products. I want to create a simple web service that lets the caller get all of a Category's products by passing in the Category's type and color: http:...