Microsoft Knowledge Base Email Alertz

This article describes how to use FrontPage components, which reference the Shtml.dll file, on ASP pages.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 230712 - Last Review: February 19, 2007 - Revision: 2.1

How to use FrontPage components on ASP pages

This article was previously published under Q230712

SUMMARY

This article describes how to use FrontPage components, which reference the Shtml.dll file, on ASP pages.

NOTE: You may receive the following error when submitting a search or submitting from a form:
Cannot run the FrontPage Server Extensions' Smart HTML interpreter on this non-HTML page: "http://servername/subweb/default.asp"

MORE INFORMATION

This functionality has been disabled for all versions of the Server Extensions after version 3.0.2.1105 because it is a very specific security threat.

For additional information, see the following article or articles in the Microsoft Knowledge Base:
182125  (http://kbalertz.com/Feedback.aspx?kbNumber=182125/EN-US/ ) FP98: Browsing to ASP Files Through Shtml.dll Displays ASP Code
You can use a server-side include to enable this by performing the following steps:

  1. Create a .html page with the FrontPage component that you want to use on it.
  2. Save the page.
  3. In FrontPage, right-click your .asp page and click Open With.
  4. Highlight Notepad and click OK.
  5. Insert the following code on the page where you want the component to appear:

    <!--#include virtual="http://support.microsoft.com/path/filename.htm"-->
    						


    Where path is the path to the .html file with the component and filename.htm is the file you created with the component on it.

    Note: This code must be in the body of the page.
  6. Save the .asp page.
Now when you browse to the .asp page, the .html file will be included dynamically and the component will function properly.

You will notice when you submit a form from this type of arrangement that the link on the confirmation page linking back to the form does not display the original .asp page. This is because the form is actually being submitted from the .html page containing the component. As a workaround for this, you can use a custom confirmation page. On the custom confirmation page, you can make a hyperlink back to the original .asp page.

If you are using a search component, the results page will not include the contents of the original .asp page for the same reason as above.

APPLIES TO
  • Microsoft FrontPage 2000 Server Extensions
Keywords: 
kbasp kbinfo KB230712
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate