Link to home
Start Free TrialLog in
Avatar of Crystal Rouse
Crystal RouseFlag for United States of America

asked on

Adding a link to display a Modal with detailed information

I have a table in my View.  I want the user to be able to click on a link to view related information in a modal.  I need help implementing this.  

My View just loops thru a list displaying those in a table:

 <tbody>
            @for (int j = 0; j < Model.Count; j++)
            {
                <tr>
                    <td>
                                INSERT LINK TO MODAL HERE FOR  @Model[j].Name
                    </td>
                    <td>
                        @Model[j].Field2
                    </td>
                    <td>
                        @Model[j].Field3
                    </td>
</tr>
 </tbody>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dirk Strauss
Dirk Strauss
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Crystal Rouse

ASKER

Thank You for the example code!  I'll try it out and ask more questions I'm sure!