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...
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!
...
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...
(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["...
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 can I have different URL ids like www.somewebsite.com/index?theidentifier=34 only in ASP.NET MVC not Webforms.
...
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...
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...
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
...
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...
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 ....
...
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...
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...
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...
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...
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 (...
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 ...
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...
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
...
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:...