Alternative approach to frames....?

Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Dec 2007
Posts: 9
Reputation: cyberwizmj is an unknown quantity at this point 
Solved Threads: 0
cyberwizmj cyberwizmj is offline Offline
Newbie Poster

Alternative approach to frames....?

 
0
  #1
Mar 23rd, 2008
Click image for larger version

Name:	smpl.JPG
Views:	6
Size:	12.3 KB
ID:	5558

I am a beginner with asp.net. I want to make a menu towards the left with content area towards the right. Just simple clicking link in the left frame and displaying data in the right frame.. only that I don't want to use frames and I'd like the menu to not to scroll up with the content on the right. Also, I can't use ajax controls, don't want to use flash and don't know java too well...

In the website I wanted to put link buttons/image buttons in the menu to display data in a gridview.

Any type of approach to do the above is welcome.. css/css2,tables,master pages, little bit of this n that, etc...

Thanks in advance
"If it involves programing, it's possible."
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 73
Reputation: lio04 is an unknown quantity at this point 
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: Alternative approach to frames....?

 
0
  #2
Mar 23rd, 2008
Very easy way is use <div id> tags and extern style.css file.

e.g. this code in HTML file:

In header:
<link rel="stylesheet" type="text/css" href="style.css" />

Body:
<body>
<div id="container">
	
	<div id="menu">
	blah blah
	</div>

	<div id="content">
	blah blah
	</div>
</div>
</body>

and CSS:
#container {
  width: 500px;
  margin: 0 auto; 	
}
  

#menu {
  width: 200px;
  height: 600px;
  float: left;
  background-color: #c6d9f0;
  }

#content {
  width: 300px;
  height: 600px;
  float: left;
  background-color: #ffffff;
}

I hope, that I understand right, what you want.
Jabber: lio(at)jabbim(dot)sk
Sorry for my English, I am only an autodidact.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 9
Reputation: cyberwizmj is an unknown quantity at this point 
Solved Threads: 0
cyberwizmj cyberwizmj is offline Offline
Newbie Poster

Re: Alternative approach to frames....?

 
0
  #3
Mar 24th, 2008
How do I open new pages in the content area?
"If it involves programing, it's possible."
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 73
Reputation: lio04 is an unknown quantity at this point 
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: Alternative approach to frames....?

 
0
  #4
Mar 24th, 2008
e.g. with PHP function inserted in content:

  1. <?php
  2. $menu = $_GET['menu'];
  3. if ($menu=="") $menu=index;
  4. $filename="_".$menu.".php";
  5. include "$filename";
  6. ?>

In menu can be
<a href="index.php?menu=articles">Articles</a><br>
if is file named _articles.php .
Last edited by peter_budo; Mar 24th, 2008 at 4:22 pm. Reason: Keep It Organized - please use [code] tags
Jabber: lio(at)jabbim(dot)sk
Sorry for my English, I am only an autodidact.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 9
Reputation: cyberwizmj is an unknown quantity at this point 
Solved Threads: 0
cyberwizmj cyberwizmj is offline Offline
Newbie Poster

Re: Alternative approach to frames....?

 
0
  #5
Mar 24th, 2008
unfortunately my server doesn't support php...
"If it involves programing, it's possible."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Site Layout and Usability Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC