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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:21:26+00:00 2026-05-31T17:21:26+00:00

I have the following table in my view. <table> <tr> <th>Name</th> <th>Start</th> <th>End</th> </tr>

  • 0

I have the following table in my view.

<table>
<tr>
   <th>Name</th>
   <th>Start</th>
   <th>End</th>
</tr>
<tr>
   <td>Whatever</td>
   <td>3/14/2012</td>
   <td>3/31/2012</td>
</tr>
<tr>
   <td>Whatever2</td>
   <td>3/15/2012</td>
   <td>3/30/2012</td>
</tr>
</table

What I want to be able to do in in my view is turn each col row for “Name” (Whatever, Whatever2) into a corresponding actionlink based on the corresponding id that is passed into the view (that will later provide drill down into another view). How can I do this using jquery?

Something like:

<script type="text/javascript">
    @foreach(var row in Model)
    {
        <text>$('#rowcolid.text(@(Html.ActionLink(<name of the row cell for "Name" col>, "Details", new {id = modelItem => item.id})</text>
    }
</script>
  • 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-31T17:21:28+00:00Added an answer on May 31, 2026 at 5:21 pm

    This is what I used for a solution in my view (it’s a hack but it achieved what I needed considering the constraints):

    <script type="text/javascript">
    @{
       int ii = 0;
       foreach(var row in Model.Items)
       {   
           <text>$('td:first-child:eq(@(ii))').html('@Html.ActionLink(row.EntityName, "Details", new {id = row.EntityId })')</text>
           ii++;
       }
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following view and table in my project, vw_get_arabia_upod_full_details arabia_upod_item_avalability_master I want
I have the following table structure inside a view which gets displayed in the
Suppose I have the following table: PARAMETER - NAME varchar2(10) - TABLE_NAME varchar2(50) -
I have the following table and I want to retrieve students ( STUD_ID )
I have basically the following table, Categories id name categories_id_categories 1 Clothes null 2
Hii everyone! I have some text fields in each cell of the table view,
i have following table album_id | sub_album_id | name sdf2342 | 0 | family
I have the following table in a MySql database: **EmpInfo** ID Name Address --------------------------------------------------------
I have the following DB model: **Person table** ID | Name | StateId ------------------------------
I have the following HTML table. In the last column of each row there

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.