Solved

asp.net mvc4

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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