Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2010, 07:54 AM
Authorized User
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 72
Thanks: 17
Thanked 0 Times in 0 Posts
Lightbulb Display Images Horizontally in Gridview

Hi,

I have over 300 Images in my web site.

I want to show all this images in a gridview horizontally.

I know i can do it with DataList control easily by - RepeatDirection="Horizontal", but DataList don't support Paging, thats why i want it on Gridview, but I am not able to display the images horizontally.

How to do this.

Please help.

Thank you....!!
 
Old March 10th, 2010, 09:55 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Use the ListView.

http://msdn.microsoft.com/en-us/libr....listview.aspx
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 11th, 2010, 01:15 AM
Authorized User
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 72
Thanks: 17
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
I am using asp.net 2.0, there's no Listview control in it.

Any other solution please

Thanx for all help.
"Peace comes from within, Don't seek it without"
 
Old March 11th, 2010, 01:28 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Here is an article that shows how to do paging with a DataList:

http://weblogs.asp.net/scottgu/archi...07/434787.aspx
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 15th, 2010, 05:24 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to display images in GridView using ASP.NET 3.5

Hello!

It is urgent! I have to hand in my project due to this Friday. I am still struggling to put images in GridView. Can you help me? Must I also use C# to write codes??

Thanks!
Natalie
 
Old March 15th, 2010, 05:47 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Did you see the article from Scott Guthrie I posted about DataList paging? If you are using 2.0, you could use a DataList, and the article talks about how to do the paging with it.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 15th, 2010, 06:30 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No I didnt see it. I will search it, thanks!

No, I am using ASP.NET 3.5. I may not use DataList to display images. Must display images in GRIDVIEW! Do you know ASP.NET 3.5 well?
 
Old March 15th, 2010, 06:54 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

If you are using 3.5, then I'd use a ListView. That is assuming you need to have complete control over the layout of the photos.

If you need to use a GridView, that should not be a problem, as long as you're okay with displaying the images in vertical columns.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 15th, 2010, 06:58 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well according to the assignment instrutions i have to use GridView to display images. But I dont know HOW??? Must I write codes in C#? Any tips?
 
Old March 15th, 2010, 07:03 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

You can write such a program in any supported .NET language. What language have you been using up until now?
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
displaying items from database horizontally plugnz BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 March 2nd, 2010 06:15 AM
Displaying images in gridview using code takwirira ASP.NET 2.0 Basics 2 May 23rd, 2008 06:28 AM
display images from DB shs BOOK: Beginning ASP.NET 1.0 11 February 21st, 2006 02:21 AM
is it possible to display GIF Images uneek_18 Crystal Reports 0 January 16th, 2006 08:03 AM
how to display images ? shirley65 C# 2 May 31st, 2004 08:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.