Solved

asp.net mvc4

Posted on 2014-10-08
3
86 Views
Last Modified: 2014-10-14
Hi guys ,

I'm trying to list some items to the partial view with <div> concept, so I did something like that:
and of course it is not working can somebody help me to arrange this code properly.

@model IEnumerable<ALThompsonCRM.Models.ViewModel.Storecatalog>

@using (Html.BeginForm("FileUpload", "AltStore", FormMethod.Post,
                         new { enctype = "multipart/form-data" }))
{

<link href="~/Content/Stote.css" rel="stylesheet" />


    <div class="product-grid fade" onclick="location.href='details.html';">
        <div class="product-grid-head">
            <ul class="grid-social">
                <li><a class="facebook" href="#"><span> </span></a></li>
                <li><a class="twitter" href="#"><span> </span></a></li>
                <li><a class="googlep" href="#"><span> </span></a></li>
                <div class="clear"> </div>
            </ul>
            <div class="block">
                <div class="starbox small ghosting"> </div> <span> (46)</span>
            </div>
        </div>
        <div class="product-pic">
            <a href="#"><img src="images/product2.jpg" title="product-name" /></a>
            <p>
                <a href="#"><small>Nike</small> HYPERVENOM <small>Phantom</small> FG</a>
                <span>Men's Firm-Ground Football Boot</span>
            </p>
        </div>
        <div class="product-info">
            <div class="product-info-cust">
                <a href="details.html">Details</a>
            </div>
            <div class="product-info-price">
                <a href="details.html">&#163; 380</a>
            </div>
            <div class="clear"> </div>
        </div>
        <div class="more-product-info">
            <span> </span>
        </div>





        @if (Model.Any())
        {
            foreach (var item in Model)
            {
                <div>
                    @item.DepartmentName
                    @item.CategoryName
                    @item.itemLookupCode
                    @item.Description
                    @string.Format("{0:c}", item.Price)
                    @*<td class="options-width">
                        <a title="View Picture" onclick="ShowPopup(@item.Id);" class="btn btn-primary btn-sm" href="#">View</a>
                    </td>*@
                </div>
            }
        }
        else
        {
            <div>
                <p colspan="6">No data found, Please try again </p>
            </div>
        }

    </div>
    
}

Open in new window

0
Comment
Question by:Moti Mashiah
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40371575
I don't understand what you are trying to do, and what fails to work.  Please indicate why that code is not working.
0
 
LVL 1

Accepted Solution

by:
Moti Mashiah earned 0 total points
ID: 40372105
Hi guys

Thank you for answer I have been solved the issue already
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 40379383
I solved the problem myswlf
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now