Newbie question about old include stmts

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Newbie question about old include stmts

    We want all our new .NET projects to use the same headers
    and footers, with the application specific HTML/ASP
    controls in between. In ASP we did this with #include at
    the top and bottom. What is the best way to do this
    in .NET? I have considered Import, but did not think it
    worked with HTML stuff on the same page. Also considered
    placeholders, but this means everyone has to add the
    placeholder controls to their page. The other idea was
    possibly inheriting the page from a previously created
    page instead of directly from System...Page.
    Any ideas?

    Thanks
    Bob Guest

  2. Similar Questions and Discussions

    1. #include substitution question
      hi, the #include directive is invoked at compile time. i need to use something simular that will be invoked at runtime. this nice thing about...
    2. Newbie: How to Include HTML Help in Flex Application
      I have an HTML Help compiled help file (.CHM format) I created using Microsoft HTML Help Workshop. I asked my Flex developer to add a Help button...
    3. Newbie include question
      I put this in my PHP and it works fine. <?php $db = mysql_connect("localhost", "root"); mysql_select_db("sites",$db); $result =...
    4. include question
      Yang Li Ke wrote: try that :P <?php $id = '2'; include('myfile.php'); ?>
    5. another include file question
      A question about a navigation bar via an include file. I am not able to currently test the pages on a server just yet, therefore the preview in...
  3. #2

    Default Re: Newbie question about old include stmts

    The most common replacement for old fashioned include files are web user
    controls.
    They basically are like object oriented include files on steroids.

    Here's more info:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconintroductiontowebusercontrols.asp[/url]
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriwebusercontrols.asp[/url]
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconWebUserControlsVsCustomWebControls.asp[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Bob" <bninosphamus@mindspring.com> wrote in message
    news:028c01c35074$55fb3220$a101280a@phx.gbl...
    > We want all our new .NET projects to use the same headers
    > and footers, with the application specific HTML/ASP
    > controls in between. In ASP we did this with #include at
    > the top and bottom. What is the best way to do this
    > in .NET? I have considered Import, but did not think it
    > worked with HTML stuff on the same page. Also considered
    > placeholders, but this means everyone has to add the
    > placeholder controls to their page. The other idea was
    > possibly inheriting the page from a previously created
    > page instead of directly from System...Page.
    > Any ideas?
    >
    > Thanks

    Steve C. Orr, MCSD Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139