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 8267553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:34:27+00:00 2026-06-08T05:34:27+00:00

I was doing this tutorial of asp.net, all fine, but I would like to

  • 0

I was doing this tutorial of asp.net, all fine, but I would like to add a “pictures” link in this table. And when its clicked in a new page the uploaded files will be shown of that ID.

How can I relate the pictures with the same ID of a line. I am new to C# MVC3, so some explanation would be appreciated.

Thanks.

Note: I edited it, so its using MySQL as database.

  • 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-06-08T05:34:30+00:00Added an answer on June 8, 2026 at 5:34 am

    Once you have passed the model into your view from the controller you can create the link within the table like I’ve done below. This link will pass the id or whatever variable you have given or are using for the picture that you want to pass back to the Controller. From the controller use that id to pull the images and pass them into a new view.

    @foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Picture", "Picture", new { id=item.ID }) |
        </td>
    </tr>
    

    This is a really good tutorial for beginning MVC
    Accessing your model’s data from a controller

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

Sidebar

Related Questions

I'm doing this little tutorial: http://www.asp.net/mvc/videos/mvc-2/how-do-i/creating-a-tasklist-application-with-aspnet-mvc But somehow he's passing a string back to
I am doing [this tutorial][1] over at www.asp.net. It is written for ASP.NET MVC
I am doing this tutorial that would return the GPS coordinates. When I run
I am doing the Nerd Dinner tutorial for ASP.NET MVC and I met one
Working through a tutorial (Professional ASP.NET MVC - Nerd Dinner), I came across this
I'm doing this tutorial on how to reset a forgotten password. It all works,
I was following this tutorial http://www.asp.net/mvc/tutorials/mvc-music-store when I stumbled on this piece of code.
I'm doing this as part of a Java tutorial, so it is probably not
I'm currently doing facebook integration and have gone through this tutorial . So far,
I'm doing a graph with Quartz, following this tutorial . This is my hard-coded

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.