Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ASCX vs. ASPX


Message #1 by "Lars Tengstedt" <tengstedt@e...> on Fri, 17 May 2002 13:07:07
I am building an ASP.NET application (surprise).
Can anyone tell why I should use more than one .aspx instead of having one
.aspx page which includes the other 'pages' as controls?

All pages has to have a header, a menu, and some control depending on user
input.
Why not just have one .aspx and just define some controls to input instead
of having to duplicate the header and menu to all .aspx pages ??


Any comments are greatly appreciated.

Kind regards,
Lars Tengstedt 
Message #2 by "Dean Santillan" <webmaster@5...> on Fri, 17 May 2002 22:36:19 +0900
I agree with you totally, I use one page and populate the aspx file with
numerous user controls.

The main aspx file has static usercontrols for the header and the footer. I
thbink it is totally down to personal cbhoice. I have about 200 usercontrols
and 4 aspx pages in my site i am developing.

If you want an example of usercontrols dynamically populating an aspx page
check the ibuyspy portal code. Everything is stored in the database and
calls are made accordingly.

www.ibuyspy.com
http://www.ibuyspyportal.com/DesktopDefault.aspx

Dean Santillan
MCP
Webmaster@5...

-----Original Message-----
From: Lars Tengstedt [mailto:tengstedt@e...]
Sent: Friday, May 17, 2002 1:07 PM
To: ASP+
Subject: [aspx] ASCX vs. ASPX


I am building an ASP.NET application (surprise).
Can anyone tell why I should use more than one .aspx instead of having one
.aspx page which includes the other 'pages' as controls?

All pages has to have a header, a menu, and some control depending on user
input.
Why not just have one .aspx and just define some controls to input instead
of having to duplicate the header and menu to all .aspx pages ??


Any comments are greatly appreciated.

Kind regards,
Lars Tengstedt


  Return to Index