473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

design challange with asp.net - ok with other technols..

hi -
I'm now a .NET convert - having come from the Perl world...
I've been doing/thinking asp.net for a while, but am still not
happy two things in particular - any advice/opinion appreciated:

1) it seems difficult to abstract 'page level' coding. eg - nav bars -
I would like to split the page into three areas using tables to house:
top level nav, left nav, and page content - however - *I do not want
the code for this table, or the nav bars, or any code to call in nav
bars to be duplicated on each .aspx page*. In fact I only want *one
instance of the string '<HTML>' on the whole site* - this will
probably fill tradational ASPers with confusion/anger etc - but it's
important... I'll explain why later ;)

2) Visual Studio's lack of support for 'sub-applications' - ie
applications that live in sub-directories of virtual directories, and
inherit config etc from all applications above them. - this is
*possible* in ASP.NET, but awkward.

thanks all,
Oliver.
Nov 17 '05 #1
3 931
Hi,

You can achieve part of this behavior by using user controls that
encapsulate visualization and code for every bar. the next asp.net
version will support exactly what you want by using "Master pages".

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
Hi,
You're not going to be able to have one unique instance of <html> on your
entire site as each ASPX page needs opening and closing <html> tags to be a
well-formed page.

You would probably have the same restrictions with Perl as each script needs
to output correctly formed HTML in order to be rendered correctly. This is a
requirement of the HTML standards, not ASP.NET.

Your layout can be taken care of by using User Controls (ASCX) files for
each chunk of the page, and simply having a basic table framework in the
ASPX files to display the ASCX's at the correct locations.

If code needs to be run on every page to populate your user controls, look
at subclassing the Page class to create a custom Page base class that
includes all the necessary calls by default. This will mean your individual
ASPX pages can simply inherit from "mycustomclass" rather than Page, and
automatically include the code necessary to setup your controls.

--
Regards

Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever
"Oliver" <sp*************@yahoo.com> wrote in message
news:58**************************@posting.google.c om...
hi -
I'm now a .NET convert - having come from the Perl world...
I've been doing/thinking asp.net for a while, but am still not
happy two things in particular - any advice/opinion appreciated:

1) it seems difficult to abstract 'page level' coding. eg - nav bars -
I would like to split the page into three areas using tables to house:
top level nav, left nav, and page content - however - *I do not want
the code for this table, or the nav bars, or any code to call in nav
bars to be duplicated on each .aspx page*. In fact I only want *one
instance of the string '<HTML>' on the whole site* - this will
probably fill tradational ASPers with confusion/anger etc - but it's
important... I'll explain why later ;)

2) Visual Studio's lack of support for 'sub-applications' - ie
applications that live in sub-directories of virtual directories, and
inherit config etc from all applications above them. - this is
*possible* in ASP.NET, but awkward.

thanks all,
Oliver.

Nov 17 '05 #3
> You're not going to be able to have one unique instance of <html> on your
entire site as each ASPX page needs opening and closing <html> tags to be a
well-formed page.


I think this may be *possible* - one page on the site could have the
'<html>' tags, and all the others could be called in with
Server.Execute as required. I'm not 100% sure this'll work though...

I like the sound of these 'master pages' though - fingers crossed.

I think this all makes it touch to have a well designed *large*
web-site - pointers to design ideas for large asp.net sites
appreciated.
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
98
by: Pamel | last post by:
I know this must have been asked elsewhere, but I cannot find it. There is a piece of text on my web page that I don't want browsers to resize. IE won't resize it if I specify the size in px, but...
5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
3
by: Sorin Dolha | last post by:
Hello, We intend to create an ASP.NET-based Web application (hosted on Internet Information Services, or IIS) and one feature of the application needs to allow the end user to upload photos to...
10
by: charlie | last post by:
I posted this at Macromedia Dreamweaver newsgroup but go no response. I've been trying to learn CSS. Below is a link to a couple of designs that I managed to do using absolute position. ...
6
by: berndh | last post by:
Hi, I have a need to update all price fields in an SQL database. The new prices are in an excel spreadsheet (c:\db\update.xls). Unfortunately the structure of the Excel file is not the same as...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
17
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.