RenderSelectedTabIndex ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 7 ans
I really need help once again. I get a compiler error on this row


<li @Html.RenderSelectedTabIndex(0, GetSelectedTabIndex())>


I have the following using
@using Nop.Web.Framework;
@using System.Linq;
@using Nop.Web.Framework.UI;
@using Nop.Core.Infrastructure;
Il y a 7 ans
Mange211 wrote:
I really need help once again. I get a compiler error on this row


<li @Html.RenderSelectedTabIndex(0, GetSelectedTabIndex())>


I have the following using
@using Nop.Web.Framework;
@using System.Linq;
@using Nop.Web.Framework.UI;
@using Nop.Core.Infrastructure;

For RenderSelectedTabIndex   needed

@using Nop.Web.Framework


But you already used it. So I think problem on others code. Could share the error full message?
Il y a 7 ans
I have Swedish on my PC. I will try to translate it to English.

System.Web.Mvc.HtmlHelper<Nop.Plugin.Widgets.PromoSlider.Domain.PromoSliderRecord> contains does not contain a definition for RenderSelectedTabIndex and we can not find any RenderSelectedTabIndex plugin that accepts the first argument of type System.Web.Mvc.HtmlHelper<Nop.Plugin.Widgets.PromoSlider.Domain.PromoSliderRecord>
(are you missing a using or reference)


Kompilatorfelmeddelande: CS1061: System.Web.Mvc.HtmlHelper<Nop.Plugin.Widgets.PromoSlider.Domain.PromoSliderRecord> innehåller inte en definition för RenderSelectedTabIndex och det gick inte att hitta någon RenderSelectedTabIndex-tilläggsmetod som accepterar ett första argument av typen System.Web.Mvc.HtmlHelper<Nop.Plugin.Widgets.PromoSlider.Domain.PromoSliderRecord> (saknas ett using-direktiv eller en sammansättningsreferens?)

Källfel:


Rad 24: <div id="product-edit">
Rad 25:     <ul>
Rad 26:         <li @Html.RenderSelectedTabIndex(0, GetSelectedTabIndex())>
Rad 27:                 Slider
Rad 28:             </li>
Il y a 7 ans
I'm using version 3.80 and I have found a solution for the problem. I have not clean the code but I think I have to use @Html.RenderBootstrapTabContent and @Html.RenderBootstrapTabHeader.


<div class="content">
    <div class="form-horizontal">
        <div id="blog-post-edit" class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                @Html.RenderBootstrapTabHeader("Slider", @T("Admin.ContentManagement.Blog.BlogPosts.Info"), true)
                @Html.RenderBootstrapTabHeader("Bilder", @T("Admin.Common.SEO"))
            </ul>
            <div class="tab-content">
                @Html.RenderBootstrapTabContent("Slider", Sliders(), true)
                @Html.RenderBootstrapTabContent("Bilder", Images(), false)

                @*@Html.RenderBootstrapTabContent("tab-info", @TabInfo(), true)
                @Html.RenderBootstrapTabContent("tab-seo", @TabSeo())*@
            </div>
        </div>
    </div>
</div>
@helper Sliders()
    {
    }

@helper Images() { }
Il y a 7 ans
Mange211 wrote:
I'm using version 3.80 and I have found a solution for the problem. I have not clean the code but I think I have to use @Html.RenderBootstrapTabContent and @Html.RenderBootstrapTabHeader.


<div class="content">
    <div class="form-horizontal">
        <div id="blog-post-edit" class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                @Html.RenderBootstrapTabHeader("Slider", @T("Admin.ContentManagement.Blog.BlogPosts.Info"), true)
                @Html.RenderBootstrapTabHeader("Bilder", @T("Admin.Common.SEO"))
            </ul>
            <div class="tab-content">
                @Html.RenderBootstrapTabContent("Slider", Sliders(), true)
                @Html.RenderBootstrapTabContent("Bilder", Images(), false)

                @*@Html.RenderBootstrapTabContent("tab-info", @TabInfo(), true)
                @Html.RenderBootstrapTabContent("tab-seo", @TabSeo())*@
            </div>
        </div>
    </div>
</div>
@helper Sliders()
    {
    }

@helper Images() { }


Yes. Version was the problem...
Il y a 7 ans
sohel wrote:
I'm using version 3.80 and I have found a solution for the problem. I have not clean the code but I think I have to use @Html.RenderBootstrapTabContent and @Html.RenderBootstrapTabHeader.


<div class="content">
    <div class="form-horizontal">
        <div id="blog-post-edit" class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                @Html.RenderBootstrapTabHeader("Slider", @T("Admin.ContentManagement.Blog.BlogPosts.Info"), true)
                @Html.RenderBootstrapTabHeader("Bilder", @T("Admin.Common.SEO"))
            </ul>
            <div class="tab-content">
                @Html.RenderBootstrapTabContent("Slider", Sliders(), true)
                @Html.RenderBootstrapTabContent("Bilder", Images(), false)

                @*@Html.RenderBootstrapTabContent("tab-info", @TabInfo(), true)
                @Html.RenderBootstrapTabContent("tab-seo", @TabSeo())*@
            </div>
        </div>
    </div>
</div>
@helper Sliders()
    {
    }

@helper Images() { }


Yes. Version was the problem...


this solution also throws me the same error.  my version is 3.80
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.