CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2005
    Posts
    45

    hyperlinks between two image folders

    I have two image folders in my web directory. one folder has small thumbnails and the other folder has larger images. But the images are same in both the folders.

    I want to hyper link the small folder to the larger folder so when there is a display of the small images on the web page when the user clicks the small image it should bring up the larger image from the larger file.

    using visual studio.net development tool how would i do that?

    I know how to using front page.

    Thanks/Saru

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: hyperlinks between two image folders

    This article might be worth reading.

    Isn't this a ASP.NET issue ¿

  3. #3
    Join Date
    Jan 2006
    Posts
    293

    Re: hyperlinks between two image folders

    Isnt this just regular old HTML?? You put the thumbnail image into an <img> tag, then wrap that up in a link tag with the link to the larger file...
    Code:
    <a href="http://www.mysite.com/bigimages/big.jpg"><img src="http://www.mysite.com/smallimages/small.jpg" /></a>
    Although it would probably be best to just put them into one folder, and put a prefix or something on the thumbnail....

    myimage.jpg <-- big file
    t_myimage.jpg <--thumbnail
    Last edited by gigemboy; February 23rd, 2006 at 09:18 AM.

  4. #4
    Join Date
    Nov 2005
    Posts
    45

    Re: hyperlinks between two image folders

    myimage.jpg <-- big file
    t_myimage.jpg <--thumbnail

    So if i had both the images regular and thumbnail in the same folder?
    would i have the two fileds in the database field name 1(regular) fieldname2(thumbnail)? Do i need two fields? I do not see the purpose of it but i just want to clarify on that.

    2. would you please send me some sample codes if any to display on web pages for this approach. Also i am not keen on using the picture box. Pls guide me through this. Thanks a lot.

    Saru

  5. #5
    Join Date
    Nov 2005
    Posts
    45

    Re: hyperlinks between two image folders

    I want to use datagrid. Is this something i can use? if so i would like some sample codes to display. Thanks a Bunch/Saru

  6. #6
    Join Date
    Jan 2006
    Posts
    293

    Re: hyperlinks between two image folders

    Quote Originally Posted by [email protected]
    So if i had both the images regular and thumbnail in the same folder?
    would i have the two fileds in the database field name 1(regular) fieldname2(thumbnail)? Do i need two fields?
    Saru
    No, you could just have one field, then whenever you are creating the links, just prefix "t_" to the filename in order to use the thumbnail image...

  7. #7
    Join Date
    Nov 2005
    Posts
    45

    Re: hyperlinks between two image folders

    I want to use datagrid for my image project. Can you pls provide me with sample codes. Thanks a Bunch/Saru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured