ASP.NET

  • Thread starter Thread starter Pieter
  • Start date Start date
P

Pieter

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
 
Hi,
Create all the static contents which should be displayed in all the pages
such as logo, sitemap and so as a user control. Just include that user
control in all the pages required at the desired places, as if you add the
html controls.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top