Solved

asp.net mvc4

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

11 Experts available now in Live!

Get 1:1 Help Now