?
Solved

asp.net mvc4

Posted on 2014-10-08
3
Medium Priority
?
101 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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