ehs Posted April 20, 2013 Share Posted April 20, 2013 I have an HTML file with some HTML code within (working as needed).Some where in the middle of that HTML file code, I need to run/execute an ASP file with some simple ASP code within (already created).Then continue with the rest of the HTML code within the original HTML file. The ASP file is "FormOpen.asp" and contains the following: <% FormOpen = Request("FormOpen") %> <% If FormOpen = "" Then %> <div id=xxx-TextBox9-xxx style='display:none;text-decoration:none'> <% Else %> <div id=xxx-TextBox9-xxx style='display:inline;text-decoration:none'> <% End If %> It sounds simple enough, but I just can't get it, kinda writers block. Thanks in Advance for any help, Link to comment Share on other sites More sharing options...
jeffman Posted April 20, 2013 Share Posted April 20, 2013 (edited) Should that be more like this? <%dim FormOpenFormOpen = Request.Form("FormOpen")%> Edited April 20, 2013 by Deirdre's Dad Link to comment Share on other sites More sharing options...
ehs Posted April 20, 2013 Author Share Posted April 20, 2013 (edited) Not looking to modify the intended function of the ASP file.Just looking for the proper code to insert in my HTML file to tell it to execute the code in the above ASP file.Then continue with the rest of the code in the original HTML file. Edited April 22, 2013 by ehs Link to comment Share on other sites More sharing options...
justsomeguy Posted April 22, 2013 Share Posted April 22, 2013 You can't embed dynamic content in a static page, you need to make both files ASP files and include one from the other. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now