Re: Need to pass data to a .htm file by session.
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi Sue,
Short answer: you can't. html (htm) files are static, and don't get
parsed by the asp or asp.net engines. Broadly, you have two options:
1. Convert your static html file to an asp or asp.net file, and use
server side scripting to access the session. Old-style ASP is easier to
learn than ASP.NET, but ASP.NET is much "better". The
microsoft.public.dotnet.framework.aspnet newsgroup is your first stop
for all questions relating to asp.net.
2. Pass the needed arguments to your static html file on the
querystring, and access them using client-side javascript. This will
only work for very small amounts of information.
Hope this helps.
Cheers,
Mark
Sue wrote:
I am trying pass some data to a html/htm file by a session veriable.
How can I do this?
Please let me know.
Thanks.
-S
.
Relevant Pages
- Re: .htm vs .asp
... Active server page. ... and then sent out as htm to the client. ... An asp page can pull the ... info from the database and put it onto the page. ... (microsoft.public.frontpage.client) - Re: Error message Method POST Not Allowed
... In order to use the FP Form Handler, the form must have the .htm or .html extension. ... use ASP to process the form, then you have to write a custom form handler in ASP/VBscript. ... >> is Active Server Pages, the server-side technology used on Microsoft ... (microsoft.public.frontpage.client) - Re: redirect 301
... Unless you set your server to parse .htm pages as asp this code will not ... If you're on some form of unix server you may be able to do what you want ... (microsoft.public.frontpage.programming) - Re: asp page from htm page
... If you have access to the script mappings you can map .htm to be processed ... > I do have a number of admin capabilities on the host server via the> control pannel. ... > I'm guessing from you're answer that on the IIS admin application you can> set IIS to recognize ASP code in an htm file...? ... >> Well, for one thing, the information you're looking for is probably in>> the IIS logs - however it IS possible to run ASP code in a file marked ... (microsoft.public.inetserver.asp.general) - Re: window.open and navigation
... I tried various combinations of asp and htm ... Can you verify the same behaviour on your server? ... and my users by and large don't like the web-stuff looking/acting ... (microsoft.public.scripting.jscript) |
|