Solved

asp.net mvc4

Posted on 2014-10-08
3
99 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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