|
-
Jul 6th, 2005, 11:12 PM
#1
Image Viewer Page
How do I create a asp.net page that will allow me to give the user the ability to navigate
through a folder of images?
Or is there a better way to diaplay a page of images?
Thanks for any help.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 6th, 2005, 11:37 PM
#2
Re: Image Viewer Page
That's a somewhat generic question, isn't it?
You'd first enumerate all the images in the said folder, store the paths in a collection. You can work with the collection and an associated variable to give you things like the number of images, etc.
You can then simply set the imageurl of your image control to the collection's item's value.
-
Jul 7th, 2005, 12:19 AM
#3
Re: Image Viewer Page
Not even. It specific and to the point. 
So would I enumerate the images in the forlder into an arraylist or it has to be a class that inherits collection base?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 7th, 2005, 12:35 AM
#4
Re: Image Viewer Page
No difference. You only need to hold the object in your session variable. It's only a matter of maintaining the current image number.
-
Jul 7th, 2005, 08:05 PM
#5
Re: Image Viewer Page
Pretend I am a ASP.NET n00b and explain in detail and please speak slowly so I can write it down as you speak.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 8th, 2005, 08:41 AM
#6
Re: Image Viewer Page
Use the file class to list all the image files in a given directory.
Add each file name to an array, FILEARRAY. An example of an entry would be "nudemendhak.jpg"
Create a variable to hold the current position. INTBOOKMARK, initial value 0.
Add FILEARRAY to viewstate.
Set the URL of your IMAGE control to the entry in the 0th position of FILEARRAY, it should end up something like: "images/nudemendhak.jpg"
Set the link on your "next" button to the same pagename and append "?imagenumber=" & INTBOOKMARK + 1. (Of course you'll do proper checks like making sure that intbookmark+1 is not greater than the upperbound of the array).
Do the same for your previous button, again with checks that INTBOOKMARK-1 is not less than 0.
Your page, when loading, will check Request.QueryString() for imagenumber, and set the bookmark to that number. And you will load the corresponding image in the array.
-
Jul 8th, 2005, 10:51 AM
#7
Re: Image Viewer Page
Thanks for the info. That is what I needed. When I get home I will try it out. So until then the thread's on hold.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|