Enable document footer - html

I tried to use Enable document footer function in IIS6 for my web sites
after some tests i discovered that it works for static files only
may i config it for pages like aspx or asp or maybe u have alternative solutions?

As you correctly point out, the IIS Document Footer feature only works with static files.
With ASP you could use include files:
<!-- #include file="footer.html" -->
The downside is that you'd need to add the include directive to all your ASP scripts.
If you're using ASP.NET you could use a HttpModule to inject a header and footer into every page. There's an example of how to do this on CodeProject:
Add a header and footer control to all web pages in a web application, using HTTP module
I downloaded the sample project and it works a treat.

Related

how to enable base template on apphook'd page and use footer in static placeholder

I've got an application hook to work as explained in the very basic sample of the doc. The application does its job, renders its own templates and does all navigation back and forth.
But I am facing 2 problems:
After putting the hooked application an a page via the advanced settings of the cms, I am no longer be able to edit the page over the frontend. If I navigate in /?edit mode to this particular page cms toolbar dismisses and the /?edit mode is taken away.
How can I recover editing such an apphook'd page?
In the site's view mode (published apphook'd page) I have no styling and no base.html template stuff. So I miss the header menu coming from the base template and the footer which is generally added to each page by a static placeholder. Since I am not able to do frontend editing of the apphook'd page (as mentioned in paragraph 1), I am unable to embed the application into my well known page style.
How can I get the intimate styling back for such an apphook'd page?
I am working with
django 1.11.18
djangocms 3.5.3
python 3.7.2
Got it to go. Considerably following this instructions did the trick. I was able to overload the particular template from within the apphook application.

Can I still use `.cshtml` files in a hybrid mobile project?

All the resources use only HTML, but stuff like Cordova and Ionic work on the client, with HTML pages (and JavaScript and CSS of course), and once MVC has served a page, that page is HTML, so the hybrid tooling should be able to use it.
The only problem is that once it's served, it lacks the .html extension, but maybe I can figure a way to add this.
The reason I'd like to stick to .cshtml for my layout is that I can scaffold views from my sever-side view models, and this adds quite a lot of value for me.
If the question is: can you have .cshtml files on your mobile device, the answer is no. .cshtml file is processed on server by the Razor view machine, so plain HTML can be generated. Obviously you don't have MVC, Razor and such on your hybrid ionic app.
You can however work around it by taking your angular templates to be generated on your server by MVC. So, when you setup your templateUrl somewhere, instead of taking the relative path to your local template .html file, you can point to the controller on your server, giving the full path, with http:// and so. The controller will then generate your template for you and return as plain HTML.
Bear in mind, that angular will cache this, so it will be loaded only once.

Is it Possible with out using Iframes we can display HTML page inside an other Html Page?

I am new to HTML5,i need to display one HTML page Inside an other HTML page with out using frames&iframes.
please help me.
the other way is to 'scrape' other web pages via AJAX and insert contents into an element on your page.
You will probably be hosting your HTML web pages in some kind of a server. So in an Apache server you can use PHP include() function.
Or in IIS you can use ASP #include directive

Displaying HTML pages in an ASP.Net MVC Web App

I have a simple MVC site but I need to add in some static HTML pages, I have tried to add an IgnoreRoute in for .html files but this didn't work.
routes.IgnoreRoute("{resource}.html/{*pathInfo}"); worked for me. And place it before all other route definitions in your global.asax.

Embedding HTML files in other HTML pages

I am new to HTML. I have an html page named "main.html" and i want to include another html page called "menu.html" in it. My main.html page doesn't include frames and it is designed using div tags. My site is hosted on linux based server The site I have to redesign is Java questions.
You want to look at Server Side Includes (SSI). This tutorial by Apache should get you up and running if that site is running on Apache.
There are plenty of Server Side ways of doing this, but all except SSI require the use of a language other than HTML.
If you're using IIS, you can check out Microsoft's writeup on Server Side Includes.
Check out server side includes.
You should use server-side includes.
i.e. in jsp you can use: <c:import url="/include/navigation.jsp" />, in php <?php include("/sidebar.php");?> and so on.
This is the good way to do what you need: include a navigation menu, or other parts common to all pages, without rewriting it in each page.
You can also do the same in other ways (with some javascript i.e.) but I doubt that you want to build a site called Java Questions without any server side language.
I think that PHP is the easiest way to do this. Most of the time you can just change your main.html file to main.php then add this php code where you want the menu bar:
<?php include('menu.html'); ?>
And that's it! You have to make sure that php is installed on your sever. Also this will ONLY work on a server. So if you are testing on your computer and using something like dreamweaver (or even a browser), you won't see anything until it's online.
You can make an ajax call in javascript if you want to avoid using the server.
In JQuery you would do:
<div id="putStuffHere">
</div>
<script>
$('#putStuffHere').load('myStuff.html');
</script>