Re: How can I show 2 records beside each other?



Great - thanks for all your help.

Will


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OldrhopRGHA.1728@xxxxxxxxxxxxxxxxxxxxxxx
What you're looking for is Paging.
It doesn't take much coding to implement it.

The reference you were given :
http://aspnet.4guysfromrolla.com/articles/081804-1.aspx
is an excellent guide.

There's other approaches, like :
http://www.411asp.net/func/content?tree=411asp/tutorial/howto/database/displayr/pagingre&id=4628710
and
http://www.vbdotnetheaven.com/Code/Sept2003/2173.asp

Here's a ready-made PagingRepeater control, complete with its free code,
which you could probably easily adapt to your needs :

http://www.codeproject.com/aspnet/pagingrepeater.asp

You'll need to join the Code Project to download the code,
but it's free and they don't bug you with spam.

Good luck!



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"William Buchanan" <william.buchanan@xxxxxxxxxxxxx> wrote in message
news:OM6ayznRGHA.6084@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply. I am missing something so please bear with me!

I can see how the repeater can be used to repeatedly display all records
in a table (as can a datalist). However, I only want to see 2 records at
a time. This means that I need to show the first 2 records, then when I
click "Next" it will show the next 2 records, and so on.

I know this can be done through lots of code, but I was hoping that there
would be some way of doing it by using the data components.

Will

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%239Sg8ZjRGHA.792@xxxxxxxxxxxxxxxxxxxxxxx
re:
I want to show 2 records on a page side by side.
Are you saying it is possible to bind it to the next record as well?

That doesn't seem so impossible to do.

See a sample at :
http://www.dotnetjunkies.com/quickstart/aspplus/samples/webforms/pagelets/VB/Pagelet6.aspx

The source for that is at :
http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/pagelets/Pagelet6.src




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"William Buchanan" <william.buchanan@xxxxxxxxxxxxxxxxxxxx> wrote in
message
news:uhVgR4iRGHA.2156@xxxxxxxxxxxxxxxxxxxxxxx
I have looked into the repeater object.
As far as I could see, you can bind it to the data of the current
record only.

Are you saying it is possible to bind it to the next record as well?

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OyupMDiRGHA.792@xxxxxxxxxxxxxxxxxxxxxxx
Look into the Repeater object.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"William Buchanan" <william.buchanan@xxxxxxxxxxxxxxxxxxxx> wrote in
message
news:Opu1xLhRGHA.4300@xxxxxxxxxxxxxxxxxxxxxxx
Hi folks

I want to show 2 records on a page side by side. Each record has an
image which will be
displayed and a bit of text.

How can I do this?

Thanks

Will








.


Loading