From: Andy on
Hello All:

I have been tasked with modiftying an existing applicaiton. This app, for
each .asp page has two pages, an .asp and .htm page. The .asp page will load
the .htm and post that to the browser.

How do I get the .asp page to interact with form variables on the .htm page?
I need to add a new <SELECT> element that is preselected. I am very lost on
how to get this SELECT box on the htm page to preselect based upon data on
the .asp backend page that loaded this .asp page. I cannot make this .htm
page an .asp page, so what would I need to do to get this field
pre-selected....

Thanks
Andy
From: Fabrice Canel [MSFT] on
Hi Andy,

You can read via script (VBScript or JScript) for instance on the client
items in the select and check or select the value you want.
http://support.microsoft.com/default.aspx?scid=kb;en-us;159757

I imagine you have frames or iframes between your ASP and you html page.
You can read from the html page value always on the client and using frames
or the iframes using parent windows...

Additionally (Or if you don't have frames) the ASP can also open the html
page with URLs parameters ?selectvalueItem=1 and you can read parse the URL
and read these parameters using client script.

Thanks,
Fabrice


"Andy" <Andy(a)discussions.microsoft.com> wrote in message
news:978C38DD-2C34-4178-8090-7E1C2CE1DA8A(a)microsoft.com...
> Hello All:
>
> I have been tasked with modiftying an existing applicaiton. This app, for
> each .asp page has two pages, an .asp and .htm page. The .asp page will
> load
> the .htm and post that to the browser.
>
> How do I get the .asp page to interact with form variables on the .htm
> page?
> I need to add a new <SELECT> element that is preselected. I am very lost
> on
> how to get this SELECT box on the htm page to preselect based upon data on
> the .asp backend page that loaded this .asp page. I cannot make this .htm
> page an .asp page, so what would I need to do to get this field
> pre-selected....
>
> Thanks
> Andy