Re: ASP.NET
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Jul 2005 11:16:29 -0400
> Do I need to copy and paste these sections in each and every aspx page
> (That
> is the main pages which contains home, contact, sitemap and these kind of
> static pages) or is there a better way. In programming there is something
> like inheritence for example.
Well, Pieter, ASP.Net IS programming, and is .Net, so inheritance is
certainly available to you, and you are right on the money in that
inheritance is the way to go for your solution.
> Also for the pages that I'm going to create dynamically from user input do
> I
> need to write these pages using response.write(). And write the entire
> html
> source this way to the client? Or is there better tools in asp.net
> because
> I asume that this was how asp works.
Generally, you would avoid Response.Write, as this is procedural in nature.
Controls are the way to go. ASP.Net has been designed to work very similarly
to Windows Forms, but in a stateless environment. ASP.Net Controls are
Controls that, rather than draw to the screen, render HTML to the HTML
document returned to the browser.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
"Pieter" <paucamp@xxxxxxxxxxxxx> wrote in message
news:dbfet5$crn$1@xxxxxxxxxxxxxxxxxxxxx
> HI
>
> I've decided to start developing dynamic webpages. I have decided to use
> ASP.NET since this is probably a good way to go and since I'm a computer
> programmer and uses VB.NET quite extensively.
>
> What I now want to know is this: I am working on a website where users
> can
> select a product from a listing. When the user clicks on one of these
> producs a page should appear with an image, summary etc of the selected
> item. Now my page has got a javascript menu interface and a few more
> things
> which should stay there whichever page is showing. One way of solving
> this
> would be to use frames, but I don't want to go with frames.
>
> Do I need to copy and paste these sections in each and every aspx page
> (That
> is the main pages which contains home, contact, sitemap and these kind of
> static pages) or is there a better way. In programming there is something
> like inheritence for example.
>
> Also for the pages that I'm going to create dynamically from user input do
> I
> need to write these pages using response.write(). And write the entire
> html
> source this way to the client? Or is there better tools in asp.net
> because
> I asume that this was how asp works.
>
> I have searced the net but don't really know what exactly to search for.
>
> Thanks
>
>
.
- References:
- ASP.NET
- From: Pieter
- ASP.NET
- Prev by Date: Re: DataGrid and JavaScript GURU...
- Next by Date: Re: class instance
- Previous by thread: RE: ASP.NET
- Next by thread: asp.net
- Index(es):
Relevant Pages
|