Re: ASP.NET

From: Jon (jonspivey_at_NOCRAPTHANKStiscali.co.uk)
Date: 02/08/04


Date: Sun, 8 Feb 2004 17:39:40 -0000

Chris,
using includes in aspx pages isn't really the best way to go. You'd probably
want to use a user control. Firstly make your control like this
<%@ control language="vb" %>
' your html

 Save with an .ascx extension (eg YourControl.ascx) now on the page(s) you
want to include this content register it at the top of the page
<%@ Register TagPrefix = "Chris" TagName = "YourControl"
Src="controls/YourControl.ascx" %>
then include it
<Chris:YourControl id="TheControl" runat="server" />

Obviously you can use whatever names you like for TagPrefix, TagName and ID

Jon
Microsoft MVP - FP

"chris leeds" <chris@nedp.net> wrote in message
news:u3qRzhm7DHA.2300@TK2MSFTNGP10.phx.gbl...
> I just want to do a FrontPage include page into an aspx page and I can't
> seem to. I can't seem to find a solid answer as to whether it's possible
in
> fp 2003 or if there's some sort of trick or hack.
> I think if VS was a little more user friendly the FrontPage users who are
> really motivated will use it in tandem. It's what we've been doing with
> photo editors and menu making utilities and the like for a while anyway.
> Maybe I'm on the dense side (I can't seem to learn flash) but every time
> I've opened VS it's like alien technology to me.
> </IMHO>
> "Jim Buyens" <news@interlacken.com> wrote in message
> news:36a7e008.0402080910.2f49b940@posting.google.com...
> > "Jim Cheshire" <contactme@www.jimcoaddins.com> wrote in message
> news:<e79JyCf7DHA.1040@TK2MSFTNGP10.phx.gbl>...
> > > > tools specifically oriented to Web designers aren't
> > > > there yet.
> > >
> > > I think the Web Forms designer team at Microsoft would probably
disagree
> > > here. While VS.NET does fall short of FrontPage in the area of table
> > > editing and in some other areas, for the most part, the VS.NET
designer
> is
> > > pretty darned good. Whidbey is a HUGE step forward in this area and
> will
> > > likely dwarf FrontPage in producing good HTML code.
> > >
> > > --
> > > Jim Cheshire
> > > Jimco
> > > http://www.jimcoaddins.com
> >
> > The other branch of this thread illustrates a sure trend of Web
> > designers sticking with tools like FrontPage, Dreamweaver, and ASP.
> >
> > Some of this is learning curve, and some is a factor of hosting
> > services not installing the .NET Framework on their servers. But the
> > biggest reason for Web designers avoiding .NET seems to be that:
> >
> > o Visual Studio doesn't have the WYSIWYG design tools that
> > Web designers want.
> > o WYSIWYG design tools like FrontPage and Dreamweaver don't
> > have the coding, testing, and deployment tools that make
> > ASP.NET easy to use.
> >
> > If Microsoft fixes this in Whidbey, great. Personally, I find it hard
> > to visualize the Visual Studio team bringing, artistically-oriented,
> > non-programming designers into their usability labs and reworking the
> > product based on that input. But maybe they are, and if so I
> > congratulate them.
> >
> > Otherwise, they and the Office team need to get more .NET features
> > into FrontPage.
> >
> > Jim Buyens
> > Microsoft FrontPage MVP
> > http://www.interlacken.com
> > Author of:
> > *----------------------------------------------------
> > |\---------------------------------------------------
> > || Microsoft Office FrontPage 2003 Inside Out
> > ||---------------------------------------------------
> > || Web Database Development Step by Step .NET Edition
> > || Microsoft FrontPage Version 2002 Inside Out
> > || Faster Smarter Beginning Programming
> > || (All from Microsoft Press)
> > |/---------------------------------------------------
> > *----------------------------------------------------
>
>



Relevant Pages

  • Re: Getting REndered HTML into FrontPage Web Page
    ... Unless you name the page with .aspx, the server will not know to process the ASP.net control within ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
    (microsoft.public.frontpage.client)
  • Re: FrontPage files in ASP.NET?
    ... > I use FrontPage to create much of the HTML for my ASPX pages. ... what control in FP is equivalent in html button control in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Lots of SharePoint stuff
    ... Open the US and Can pages in FrontPage 2003, right-click the list form ... You can also use step 4 above to add HTML controls, control visibility, etc. ... SharePoint won't maintain the web part and it's a pain to add new fields. ...
    (microsoft.public.sharepoint.windowsservices)
  • Viewing my own webparts in Frontpage
    ... Are you trying to implement a designer for the control? ... When you load a web part in via Frontpage 2003 it is ... initialized in design mode. ... listed as a safe control. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Problem with adding/browsing or closing Web Parts on Sharepoin
    ... Out of the box your page is Ghosted, editing it with FrontPage may Unghost ... control taking a long time to load its data. ... with SPS without losing the rest of our site structure? ...
    (microsoft.public.sharepoint.windowsservices)