Page 1 of 1

populate form using Request.QueryString

Posted: Mon Sep 06, 2021 3:02 am
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.

Re: populate form using Request.QueryString

Posted: Mon Sep 06, 2021 6:07 am
by Pablo
It looks like ASP code?
To which part of the software is this related?
How did you add it?

Re: populate form using Request.QueryString

Posted: Mon Sep 06, 2021 6:37 am
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.

Re: populate form using Request.QueryString

Posted: Mon Sep 06, 2021 6:47 am
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.

Re: populate form using Request.QueryString

Posted: Mon Sep 06, 2021 6:56 am
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

Re: populate form using Request.QueryString

Posted: Mon Sep 06, 2021 7:19 am
by Pablo
Please see this FAQ:
viewtopic.php?f=10&t=82134

Re: populate form using Request.QueryString

Posted: Tue Sep 21, 2021 7:46 am
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

Re: populate form using Request.QueryString

Posted: Tue Sep 21, 2021 10:34 am
by Pablo
I'm sorry, I cannot help you with custom coding.
My knowledge about ASP is very limited.