populate form using Request.QueryString

Issues related to forms.
Post Reply
royc
 
 
Posts: 5
Joined: Wed Aug 11, 2021 10:35 pm

populate form using Request.QueryString

Post by royc »

Hi I am having trouble trying to load a page containing a field to be populated from its attached query string parameters.
I am using the field "brokerkey" value as <%= Request.QueryString("broker") %> however it appears it should be [%= Request.QueryString("broker") %] that is using square brackets instead of <>.
Any help please on formatting the value field to get the parm string when page is loaded.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: populate form using Request.QueryString

Post by Pablo »

It looks like ASP code?
To which part of the software is this related?
How did you add it?
royc
 
 
Posts: 5
Joined: Wed Aug 11, 2021 10:35 pm

Re: populate form using Request.QueryString

Post by royc »

Hi simply in the properties for a text field to be keyed into. By pulling the query string
it saves typing the same fields twice. yes it is asp.
I could give you the properties box as a jpg but dont know how.
Last edited by royc on Mon Sep 06, 2021 6:48 am, edited 1 time in total.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: populate form using Request.QueryString

Post by Pablo »

Sorry, can you please be more specific?
What exactly oi you mean by
I am using the field "brokerkey" value as <%= Request.QueryString("broker") %> however it appears it should be [%= Request.QueryString("broker") %] that is using square brackets instead of <>
Do you mean the code is changed by the software?
Do you have an example project, so I can see all your settings?

Note: you may need to change the double quotes into single quotes otherwise it may break the structure of the HTML.
royc
 
 
Posts: 5
Joined: Wed Aug 11, 2021 10:35 pm

Re: populate form using Request.QueryString

Post by royc »

Sure i have sample project. How do i get it to you?
I have screen prints of properties, and web page, first if you like. as jpg images
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: populate form using Request.QueryString

Post by Pablo »

Please see this FAQ:
viewtopic.php?f=10&t=82134
royc
 
 
Posts: 5
Joined: Wed Aug 11, 2021 10:35 pm

Re: populate form using Request.QueryString

Post by royc »

sorry have not been able to post my project my computer died.
However I am trying to get the web page to show a session variable when the page is loaded.
thus I have set the session variable "sesbroker" in asp code on a previous page, now to show it on page2 i have the following in the value field.
Session["sesbroker"].ToString();
Is this the correct coding to display session variables that have been preset elsewhere?
and how to show a numeric amount field with $$$.cc ?
Thanks Roy
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: populate form using Request.QueryString

Post by Pablo »

I'm sorry, I cannot help you with custom coding.
My knowledge about ASP is very limited.
Post Reply