CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/13/2006 9:05:48 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
EdKaufmann
Asp.Net User
Load .htm page using ContentPlaceHolder7/13/2006 9:05:48 AM

0/0

Thank you for any advise,

Environment: WXP Pro, VisualStudio 2005, Microsoft VB101SamplesWebDevelopment(MenuAndSiteMapPath)

Target:
Showing existing Word/Excel etc documents - converted to .htm(filtred) - using the ASP.NET2.0 WEB.Sitemap functionality.


more detailed:
definition of .htm files in the web.sitemap (see code below)
<siteMapNode url="SiteMapPages/Football.aspx" title="Football" description="Football" roles="">
             <siteMapNode url="SiteMapPages/NFL.aspx" title="NFL" description="NFL" roles="" />
                <siteMapNode url="SiteMapPages/USFL.aspx" title="USFL" description="USFL" roles="" />
  --------->    <siteMapNode url="SiteMapPages/Soins_M?dicaux.htm" title="Soins M?dicaux" description="Soins M?dicaux" roles="" />
            </siteMapNode>


When using below code .... (from VB101 sample)
<%@ Page Language="VB" MasterPageFile="~/SiteMapPages/SiteMap.master" CodeFile="Soins_M?dicaux.aspx.vb" Inherits="Soins_M?dicaux_aspx" Title="Soins M?dicaux" %>
<asp:content id="Content1" contentplaceholderid="Content" runat="Server">
</asp:content>

.... a new  IE page shows the .htm content. I.e. the content of the .htm does not show up in the 'contentplaceholderid="Content"' i.e. I loose all TreeView/Breadcrumb info!
Of course, when copying the html code in the 'Soins_M?dicaux.aspx' (WEB.sitemap) file itself the content shows correctly in the 'contentplaceholderid="Content"'.

Questions:
How can I direct .htm files (using WEB.sitemap) to a 'contentplaceholderid="Content"?
or,
How can I achieve this withouT 'contentplaceholderid="Content"' (BUT still using web.stemap/Menu/TreeView/SitemapPath functionality!)?

As usual it's probably dead easy but I just can't figure it out!

Thanks for your time

Edi Kaufmann

EdKaufmann
Asp.Net User
Re: Load .htm page using ContentPlaceHolder7/13/2006 8:14:48 PM

0/0

Sorry when I used your time....

... as said in my post: ""As usual it's probably dead easy but I just can't figure it out!""

A simple SSI does it

<asp:content id="Content1" contentplaceholderid="Content" runat="Server">

<!-- #INCLUDE file="Soins_M?dicaux.htm" -->

</asp:content>

ed k

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Dynamic Pages [Archive] - Dynamic Drive Forums This script works fine if i use HTM pages to load. ... To change the content for each page all you have to do is ...
Dynamic Pages - Dynamic Drive Forums This script works fine if i use HTM pages to load. But if i try to load some pages with the tag inside it fails. I'm using IE6SP2 on WinXP. ...
Master Pages in ASP.NET 2.0 A master page can define zero to any number of ContentPlaceholder controls. ... let's see how to create a master and content page using Visual Studio . ...
Creating Dynamic FormView Templates am working in the ContentPlaceHolder on a page using a ... Open htm and asp pagen inside an .NET aspx project ... could not load assemly ...
Nested PlaceHolders - .NET ASP UserControl into a page:' 1. Statically add it onto page via add UserControl's declaration and tag. 2. Using LoadControl to dynamically load ...
CodeProject: MasterPages for .NET 1.1 (again). Free source code ... 'the panels (ContentPlaceHolder controls in .NET 2.0), 'and replacing the matched panels in the master page (htm) with the 'panels found in the actual page ...
Filter data to an ASPX page The aspx pages I am using takes the page layout from a .master page. The section I am working on has no page load event. ...
15 Seconds : Subclassing Pages and Master Pages in ASP.NET 2.0 This too requires a cast of the Master property, however this is much safer, because we know that the page is using Master1.master. ...
Sharepoint - Lessons learned These pages are somewhat a pain in the a** to brand since Sharepoint eats all Page events like PreInit, Load, PreRender etc. This makes it quite hard to do ...
Feedback: Web parts with custom controls and using master pages IIS will try to request default.htm and default.aspx to get the image resource. ... load page see how many times the onload, onint, createchildcontrols ...




Search This Site:










allowing access to some folders

invalid argument: length cannot be less than zero - at project level

several modules in one pa

masterpages and images

migrated application from 1.1 to 2.0 - datagrid firing itemcommand event twice

treeview presentation

test server redirects back to dev server

web.config - how to restrict people from viewing anything but login and forgotpassword pages.

'read only' version

server error in '/' application - accessfile is not valid: c:\inetpub\wwwroot\app_data\aspnetdb.mdb

free dnn modules available for download

what is a crontab, or cron?

using membership on remote server

syntax error in store procedure

how can i sepcify a role for a user when adding him using createuserwizard ?

previewing a page before deleting from recycle bin

encypt a password for a cookie -- how?

some realy cool .net tricks like detecting the press of f5 button great in edit forms

masterpages, form-tags, etc....

server error in '/dnn' application

change password control

1.1 to 2.0 (dotnetnuke)

realworld example of multiple startup projects?

what about rule based security?

custom contols (and design-time) faq

testing data accessapplication block/daab based objects using nunit and vs.net 2003

a doozie with custom providers and all

using the commerce start kit on godaddy.com

why i dislike ddn...

weather.com feed not working

 
All Times Are GMT