从列表中选择字段的值 [英] Select the value of a field from a list

查看:70
本文介绍了从列表中选择字段的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有10条记录和

当我点击显示的场地图片的图片时我的第一张记录

但是如果在一个字段中记录10张照片在同一列中我点击图像第一条记录将再次显示。

一般来说,我点击显示的第一个记录图像的同一列中的任何字段。为什么?



I have 10 records and
My first record when I click on the picture of a field of a field picture shown
But if a record 10 shots in a field in the same column I click on the image first record will be displayed again.
In general I click on any field in the same column of the first record images displayed. Why?

<td class="text-center ">
                    @*data-target=".bs-example-modal-lg"*@
                        <img data-toggle="modal" data-target="#myModal" style="width:30px ;height:30px;" alt="@item.ProductName" src="@Url.Content(@item.ProductImage)" />
                    <div class="modal fade bs-example-modal-lg"  id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true"</span><span class="sr-only">Close</span></button>
                                </div>
                                <div class="modal-title">
                                    <h4 style="color: green">@item.ProductName </h4>
                                    <br />
                                    <p>برنامه های خود را از ما بخواهید  -  کدنویس دات کام</p>

                                </div>
                                <div class="modal-body">
                                    <img  style="width:150px ;height:150px;" src="@Url.Content(item.ProductImage)" />
                                       
                                </div>

                                <div class="modal-footer">
                                    <button type="button" class="btn btn-danger" data-dismiss="modal">برگشت </button>
                                </div>
                            </div>
                        </div>
                    </div>

推荐答案

这些是列表中的三个图像。

如果你看我的第一个记录图像,图像的颜色为紫色,但是当我点击我的图片时,将显示图片#1。我很难过:(



These are three images from the list.
If you look at my first record the image the image the color purple, but when I click on my picture 3 Picture # 1 will be displayed. I'm so upset :(


My friend. My problem is that I took pictures of the database are read. And I have no information from the pictures I took, and now I want to run them by clicking Show me. The same


这篇关于从列表中选择字段的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆