Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 10th, 2010, 06: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....!!
Reply With Quote
  #2 (permalink)  
Old March 10th, 2010, 08:55 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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(); 
}
Reply With Quote
  #3 (permalink)  
Old March 11th, 2010, 12: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"
Reply With Quote
  #4 (permalink)  
Old March 11th, 2010, 12:28 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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(); 
}
Reply With Quote
  #5 (permalink)  
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
Reply With Quote
  #6 (permalink)  
Old March 15th, 2010, 05:47 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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(); 
}
Reply With Quote
  #7 (permalink)  
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?
Reply With Quote
  #8 (permalink)  
Old March 15th, 2010, 06:54 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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(); 
}
Reply With Quote
  #9 (permalink)  
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?
Reply With Quote
  #10 (permalink)  
Old March 15th, 2010, 07:03 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
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(); 
}
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05: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 01:21 AM
is it possible to display GIF Images uneek_18 Crystal Reports 0 January 16th, 2006 07:03 AM
how to display images ? shirley65 C# 2 May 31st, 2004 08:12 AM



All times are GMT -4. The time now is 11:21 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.