Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7699865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:34:45+00:00 2026-05-31T22:34:45+00:00

I have some thumbnails that I display with a Repeater, using a hyperlink and

  • 0

I have some thumbnails that I display with a Repeater, using a hyperlink and image control. I want to be able to click on a thumbnail, display the bigger image on the same page and I want the imagename to be part of the URL. Im really stuck right now. Do I use QueryString or..?
My hyperlink now looks like this:

<asp:HyperLink ID="HyperLink" runat="server"      NavigateUrl='<%#Eval("name","Content/Images/{0}") %>' ImageUrl='<%#"Content/Thumbnails/" + Eval("Name") %>' >HyperLink</asp:HyperLink>

Edit
Yes, the path to the images is: ~/Content/Images/.
Here’s some of my code behind, maybe it helps to explain what I’m doing.

protected void Page_Load(object sender, EventArgs e)
{
    string imgPath = Server.MapPath("~/Content/Images/");
    List<FileInfo> images = new List<FileInfo>();

    DirectoryInfo directoryInfo = new DirectoryInfo(imgPath);
    FileInfo[] fileInfo = directoryInfo.GetFiles();

    foreach (FileInfo file in fileInfo)
    {
        images.Add(file);
    }

    FileRepeater.DataSource = images;
    FileRepeater.DataBind();

}

protected void UploadButton_Click(object sender, EventArgs e)
{

    var file = ChooseFileUpload.FileContent;
    string fileName = ChooseFileUpload.FileName;

    var si = Gallery.SaveImage(file, fileName);
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:34:46+00:00Added an answer on May 31, 2026 at 10:34 pm

    Yes…QueryString should be fine…it can be something like

    Content/Thumbnails/page.aspx?imageName=”your image name”

    Update:

    Where are the images stored…do they have a unique value/identity?…if yes then instead use a url of something like

    Content/Thumbnails/page.aspx?imageid=”your image id”

    this should be the navigate url of your thumbnail image hyperlinks… and when the user clicks on a thumbnail…just make a query/call to wherever the images are stored with the id value in the querystring….you can ready querystring value by Request.QueryString[“imageId”] in your case…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I display some objects that have thumbnails in two ways: one in a DataGridView,
I have a ListView using the LargeIcon View mode with some 64x64 thumbnails. The
i have some javascript in the head of a page that controls an image
I'm using a PictureListBox to display some thumbnails for picture preview. The pictures I
I have a container div that contains some img tags. When I click on
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
I have some UI in VB 2005 that looks great in XP Style, but
We have some input data that sometimes appears with &nbsp characters on the end.
I have some kind of test data and want to create a unit test
I have some large .png (.jpg, ...) files that require pretty much a full

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.