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 3 1329
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.net> wrote in message
news:u$**************@TK2MSFTNGP14.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
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***@workshare.com> wrote in message
news:OJ**************@TK2MSFTNGP14.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.net> wrote in message news:u$**************@TK2MSFTNGP14.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
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.net> wrote in message
news:uO**************@TK2MSFTNGP12.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***@workshare.com> wrote in message news:OJ**************@TK2MSFTNGP14.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.net> wrote in message news:u$**************@TK2MSFTNGP14.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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 ?????...
|
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
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
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,...
| |