question about page template - please help

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

  1. #1

    Default question about page template - please help

    hi,

    i have created a aspx page template by creating a template.cs file which
    inherits from the page class. In this file I override the OnInit event and
    create a template in the form of a header, left menu and a footer. there is
    also a body area where the main content of the page will go.

    i created these 4 areas by dynamically creating a placeholder in each area
    at runtime. in the template.cs i load user controls into each area except
    for the body area (as this is meant to be populated by the main aspx page).

    in my aspx page (which inherits the template class) if i create controls at
    runtime i can simply reference the placeholder in the main body area, and
    add a control to it at runtime.

    my problem is that if i try and create controls at design time in my aspx
    page, they appear before the header, rather than in the main body area.

    i had a feeling i was creating my template in a wrong way when i did it,
    because i was generating html code in my .cs file and it's hard to
    read/maintain when you have several table cells.

    can anyone please give me an example of how to create a template with a
    header, left menu and a footer?

    i have examples on the net but they all seem to be doing it in different
    ways.

    ps: i am a beginner to asp.net.


    suzy Guest

  2. Similar Questions and Discussions

    1. Newbie Question: Biz Card Template Question
      Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I...
    2. Template question
      Hi everyone I'm working on a new website of a soccerclub, here you can take a look http://www.harmklaassen.nl/vvbaronietest/ But now I want to...
    3. Question about new page creation from template
      Hello everyone! I'm relatively new to using Contribute (v3.11) and have an issue. I've created and uploaded a client's site, using DW8, to a...
    4. Page Template
      Hi How can I do a page tamplate VB If you have an exapme Thinks
    5. ..................| template question |....................
      I have created this template where two colums are editable. When I copy and paste a paragraph to an editable column and try to put a break (<br>)...
  3. #2

    Default Re: question about page template - please help

    Check out this article, this will help you. Here i have explained the basic
    stuff of Page Template, how you need to create page templates. I have also
    given links to various article which talks about Page Template
    [url]http://www.microsoft.com/india/msdn/articles/87.aspx[/url]

    --
    Saravana
    Microsoft India Community Star,MC**
    [url]www.ExtremeExperts.com[/url]



    "suzy" <me@nospam.com> wrote in message
    news:OqQXb3$WDHA.3268@tk2msftngp13.phx.gbl...
    > hi,
    >
    > i have created a aspx page template by creating a template.cs file which
    > inherits from the page class. In this file I override the OnInit event
    and
    > create a template in the form of a header, left menu and a footer. there
    is
    > also a body area where the main content of the page will go.
    >
    > i created these 4 areas by dynamically creating a placeholder in each area
    > at runtime. in the template.cs i load user controls into each area except
    > for the body area (as this is meant to be populated by the main aspx
    page).
    >
    > in my aspx page (which inherits the template class) if i create controls
    at
    > runtime i can simply reference the placeholder in the main body area, and
    > add a control to it at runtime.
    >
    > my problem is that if i try and create controls at design time in my aspx
    > page, they appear before the header, rather than in the main body area.
    >
    > i had a feeling i was creating my template in a wrong way when i did it,
    > because i was generating html code in my .cs file and it's hard to
    > read/maintain when you have several table cells.
    >
    > can anyone please give me an example of how to create a template with a
    > header, left menu and a footer?
    >
    > i have examples on the net but they all seem to be doing it in different
    > ways.
    >
    > ps: i am a beginner to asp.net.
    >
    >

    Saravana 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