473,811 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handling website structure

Hello All,
I want to develop a website that has three panels, the left and right
panel needs to include code from common or other sections then the middle
panel. Now in ASP the way we use to do it , was include the site structure
in include files, like site header, site navigation in an include file and
then include it over the entire website. How can something similar be
achieved in ASP.net? what is the best way to go about it ? Any pointers
please.

Thanks a lot.

Imran
Nov 19 '05 #1
3 1352
The best way to handle this would be Master Pages in .NET 2.0
But if you need this designed pronto, and can't wait for that, the two best
solutions i've found:

1)
Make your header and left nav two controls.
Then on all your pages (or in your Global at runtime), add these into the
page like follows

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<!--CONTENT HERE-->
</td>
</td>
</table>
</body>
</html>

2)

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<asp:Panel id="pnl></asp:Panel>
</td>
</td>
</table>
</body>
</html>

You can then session/querystring which control you calling, and add that
into the Panel at run time (this I use as a work around untill I can Master
Pages, as that is essentially this with alot less effort)

Create a control for every section in your site.
Then you need one Main page, and a panel you can dynamically load the
content into.
So like this:

"Imran Aziz" <im***@tb2.ne t> wrote in message
news:u$******** ******@TK2MSFTN GP14.phx.gbl...
Hello All,
I want to develop a website that has three panels, the left and right
panel needs to include code from common or other sections then the middle
panel. Now in ASP the way we use to do it , was include the site structure
in include files, like site header, site navigation in an include file and
then include it over the entire website. How can something similar be
achieved in ASP.net? what is the best way to go about it ? Any pointers
please.

Thanks a lot.

Imran

Nov 19 '05 #2
Hello Grant thanks a lot for your response.
Hum does not seem to be an easy solution, but I guess that is the case,
where can I get more details about the Master Pages, I am using .net beta 2
latest version so I might as well use the Master Pages rather then controls.
cause I am pretty new to ASP.net in general, so learning curve I think
should be the same.
Imran

"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:OJ******** ******@TK2MSFTN GP14.phx.gbl...
The best way to handle this would be Master Pages in .NET 2.0
But if you need this designed pronto, and can't wait for that, the two
best solutions i've found:

1)
Make your header and left nav two controls.
Then on all your pages (or in your Global at runtime), add these into the
page like follows

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<!--CONTENT HERE-->
</td>
</td>
</table>
</body>
</html>

2)

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<asp:Panel id="pnl></asp:Panel>
</td>
</td>
</table>
</body>
</html>

You can then session/querystring which control you calling, and add that
into the Panel at run time (this I use as a work around untill I can
Master Pages, as that is essentially this with alot less effort)

Create a control for every section in your site.
Then you need one Main page, and a panel you can dynamically load the
content into.
So like this:

"Imran Aziz" <im***@tb2.ne t> wrote in message
news:u$******** ******@TK2MSFTN GP14.phx.gbl...
Hello All,
I want to develop a website that has three panels, the left and right
panel needs to include code from common or other sections then the middle
panel. Now in ASP the way we use to do it , was include the site
structure in include files, like site header, site navigation in an
include file and then include it over the entire website. How can
something similar be achieved in ASP.net? what is the best way to go
about it ? Any pointers please.

Thanks a lot.

Imran


Nov 19 '05 #3
Best to google and find a tutorial like this one:

http://www.c-sharpcorner.com/Code/20...ASP.NET2.0.asp
"Imran Aziz" <im***@tb2.ne t> wrote in message
news:uO******** ******@TK2MSFTN GP12.phx.gbl...
Hello Grant thanks a lot for your response.
Hum does not seem to be an easy solution, but I guess that is the case,
where can I get more details about the Master Pages, I am using .net beta
2 latest version so I might as well use the Master Pages rather then
controls. cause I am pretty new to ASP.net in general, so learning curve I
think should be the same.
Imran

"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:OJ******** ******@TK2MSFTN GP14.phx.gbl...
The best way to handle this would be Master Pages in .NET 2.0
But if you need this designed pronto, and can't wait for that, the two
best solutions i've found:

1)
Make your header and left nav two controls.
Then on all your pages (or in your Global at runtime), add these into the
page like follows

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<!--CONTENT HERE-->
</td>
</td>
</table>
</body>
</html>

2)

<html>
<body>
<table>
<tr>
<td colspan="2">
<!--HEADER CONTROL HERE-->
</td>
</td>
<tr>
<td>
<!--NAV CONTROL HERE-->
</td>
<td>
<asp:Panel id="pnl></asp:Panel>
</td>
</td>
</table>
</body>
</html>

You can then session/querystring which control you calling, and add that
into the Panel at run time (this I use as a work around untill I can
Master Pages, as that is essentially this with alot less effort)

Create a control for every section in your site.
Then you need one Main page, and a panel you can dynamically load the
content into.
So like this:

"Imran Aziz" <im***@tb2.ne t> wrote in message
news:u$******** ******@TK2MSFTN GP14.phx.gbl...
Hello All,
I want to develop a website that has three panels, the left and right
panel needs to include code from common or other sections then the
middle panel. Now in ASP the way we use to do it , was include the site
structure in include files, like site header, site navigation in an
include file and then include it over the entire website. How can
something similar be achieved in ASP.net? what is the best way to go
about it ? Any pointers please.

Thanks a lot.

Imran



Nov 19 '05 #4

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

Similar topics

1
3268
by: Sean W. Quinn | last post by:
Hey folks, I have a question regarding file handling, and the preservation of class structure. I have a class (and I will post snippets of code later in the post) with both primitive data structures (ints), and more complex data structures (strings and vectors) in it, and would like to write the entire class to a data file that could then be read back and loaded. However I'm having difficulty with this -- I found out (due to an...
7
2590
by: Spacen Jasset | last post by:
The main two desirable things I feel error handling should provide are these: 1) Debugging and diagnostic aid 2) User feedback One method that is used a fair amount it to 'say' that all functions must return an error code of a standard type, for example tError. Where tError is typedefed as a long int. A list of error codes may then be defined in a global header file, or perhaps upper bits of tError may indicate a module
12
2827
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown when menu items are clicked.Besides these i would like to put a custom status bar. Any error message encountered in any of the webpage will be displayed in the banner. The problem iam encountering is how to access the customer status bar in child...
14
1851
by: Mr Newbie | last post by:
I am often in the situation where I want to act on the result of a function, but a simple boolean is not enough. For example, I may have a function called isAuthorised ( User, Action ) as ????? OK, this function may return a boolean, and if this is true, then no message back is really required, but if it fails then some supporting message needs to be returned to the calling code. As I see it there are a few options.
0
1302
by: markric | last post by:
Good day, I have an ASP.NET application / website with the following type of structure: + wwwroot + company site + masterpages + product1 + product2
35
3812
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks gets about 3 or so. It also gets very awkward in nested loops, where you want to check for normal loop processing in the loop condition, not errors. Yes, you could put some generic exit flag in the loop condition, but when you're simply done if...
41
3084
by: Zytan | last post by:
Ok something simple like int.Parse(string) can throw these exceptions: ArgumentNullException, FormatException, OverflowException I don't want my program to just crash on an exception, so I must handle all of them. I don't care about which one happened, except to write out exception.Message to a log file. It seems verbose to write out three handlers that all do the same thing. So, I could just catch Exception. But, is that...
2
1886
by: Omar Abid | last post by:
Reason of this project: Error handling is one of the most difficult thing that may afford a programmer. It isn't as easy as you think and handling errors in a program some time can make errors occur! Project details: 1- New solution for handling errors in .net 2- Try...Catch...Finally Block 3- Error handling sample
9
7817
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept in sessions? I can see active sessions in my mysql database, but is that the only place this information is stored? Sessions and cookies I know are related also, but how specifically (session info stored in cookies?)? Right now, when users...
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10403
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.