Click here to Skip to main content
13,589,795 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
[^]

[^]

<ul class="row-list">
@foreach (var item in Model)
{

        if (item.SubCategoryIsHome == true)
        {

            if (selectedSubCategory != null)
            {

                if (item.Name == string.Intern(selectedSubCategory.ToString()))
                {
                <li><a href="@Url.Action("SubList", "Home", new { id = item.Id })">@item.Name</a></li>
                }
                else
                {
                <li><a href="@Url.Action("SubList", "Home", new { id = item.Id })">@item.Name</a></li>
                }
            }
            else
            {
            <li><a href="@Url.Action("SubList", "Home", new { id = item.Id })">@item.Name</a></li>
            }
    }
}


What I have tried:

Thats my problem. Iphone X looks in samsung and iphone category. i just want you to see it in the iphone category. Sorry for bad english, i hope you understand. Thank you.
Posted 2-Jan-18 22:00pm
Comments
Ehsan Sajjad 3-Jan-18 5:35am
   
your questions is not clear enough that what is the actual issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.180618.1 | Last Updated 3 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100