Results 1 to 2 of 2

Thread: embed an asp inside asp?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    56

    embed an asp inside asp?

    How can I embed an vb asp page inside another? kind of like in a frame (vb frame control, not an html frame).

    Basically i am designing a very complex intranet page with many different features, e.g. a poll, welcome note, simple BBS and it will get very complicated with it all in one aspx file. I really need one aspx file to do each job and somehow embed it in the master one in the right place. any ideas?

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    User Controls (.ascx) pages.


    build your template and name it to something.ascx
    Make sure that this is at the top
    <%@ Control Language="VB" %>


    . then on the aspx page you need to call that template:

    at the top of the page
    <%@ Register TagPrefix="TAL" TagName="AddPlayer" Src="Pagelets/newuser.aspx.ascx" %>

    change as needed

    then stick it where you need it

    <TAL:AddPlayer runat="server"/>
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width