473,386 Members | 1,790 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,386 software developers and data experts.

How to display articles in an article list in different ways?

I have 4 articles stored in one category. What I want is to list them out
like this screenshot:

http://www.webmanager.no/screenshot.jpg
(Each article is shown in red box)

The first article shall display the picture in the top, then the article
under this picture.
The 2.nd and 3.rd article need to be displayed side by side, and with the
picture to the right.
Last article shall be shown in the bottom, with no picture.
My question is, what is the best method (datagrid, repeater, place
olders - combinations...?) to make a webpage with this "custom" structure?
If anyone can explain how to to this, or have some code-examples, I will be
very thankful!!!
Dec 4 '05 #1
3 971
Well I'd probably have each major section be a user control.

If I wanted to use this pattern throughout a web site I might create an
ASP.NET 2.0 master page (or nested master pages) with various content
regions to represent each section.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Øyvind Isaksen" <oy****@webressurs.no> wrote in message
news:eH****************@TK2MSFTNGP15.phx.gbl...
I have 4 articles stored in one category. What I want is to list them out
like this screenshot:

http://www.webmanager.no/screenshot.jpg
(Each article is shown in red box)

The first article shall display the picture in the top, then the article
under this picture.
The 2.nd and 3.rd article need to be displayed side by side, and with the
picture to the right.
Last article shall be shown in the bottom, with no picture.
My question is, what is the best method (datagrid, repeater, place
lders - combinations...?) to make a webpage with this "custom" structure?
If anyone can explain how to to this, or have some code-examples, I will
be very thankful!!!

Dec 5 '05 #2
The best way is to study CSS. Most programmers can't even spell CSS.
In my .NET 2.0 course, I make sure that people learn CSS or die trying.
Here are some resources:

My dynamics blog... http://davidbetz.net/dynamicbliss/
My .NET 2.0 course blog... http://davidbetz.net/dotnetcourse/

Then go to the links on that page...

As far as the databinding, I would personally write a server control
and control the data that is filled in by other means. This is how the
information portal I created works. I have a control which takes in
RSS feeds, then creates other controls which does all the magic from
there...all based on CSS, which is the visual language of the web.

Dec 6 '05 #3
Isaksen try looking at a Repeater control at:-
http://samples.gotdotnet.com/quickst..._repeater.aspx
there are other related controls there too you can play with.
Hope thatt helps
Patrick
** IF you have more questions post it.

"Øyvind Isaksen" <oy****@webressurs.no> wrote in message
news:eH****************@TK2MSFTNGP15.phx.gbl...
I have 4 articles stored in one category. What I want is to list them out
like this screenshot:

http://www.webmanager.no/screenshot.jpg
(Each article is shown in red box)

The first article shall display the picture in the top, then the article
under this picture.
The 2.nd and 3.rd article need to be displayed side by side, and with the
picture to the right.
Last article shall be shown in the bottom, with no picture.
My question is, what is the best method (datagrid, repeater, place
olders - combinations...?) to make a webpage with this "custom" structure? If anyone can explain how to to this, or have some code-examples, I will be very thankful!!!

Dec 7 '05 #4

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

Similar topics

1
by: Tomba | last post by:
hello all, I was wondering how some sites organise articles so that they can show a list of "related articles". How is it determined which are the related ones. Is there any free script that...
2
by: Dave N | last post by:
I have a combo box that displays the names of all the users in my "Users" table. I set the RowSource to a Query from the "User" and "Project" tables. I can select any name from the list and that...
3
by: Dafna m | last post by:
Please HELP 1. How can I display an array of images from diffrent types(jpeg, bmp..)(In C#) Can I also display video files?(In C#) *** Sent via Developersdex http://www.developersdex.com...
4
by: cathy | last post by:
Hi All, I am having problems displaying content relevant to the option selected in a drop-down menu. I have an xml document which is running content through Flash and I need to have the same...
1
by: Killer42 | last post by:
List of articles in the Visual Basic Articles forum This list is fairly simple but will expand and evolve over time. New entries will be shown in bold. Basic How-To series (just getting...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...

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.