Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • monica 1 post 71 karma points
    Mar 19, 2020 @ 10:01
    monica
    0

    ActionLink in patial view -mvc

    ciao a tutti. Sono nuova con umbraco e ho un problema. Ho creato un vista (e document type e itme menu sotto HOME ) "Family" che dentro ha una partial view con un form di Login. Se non sei registrato, ho un link che ti posta alla form di registrazione. Ho creato un document type "Registrazione famiglia" con relativa partial view e controller. Come faccio a inserire il link nella login? Se inserisco "https://localhost:44307/RegistrazioneFamiglia" esce "Page not found No umbraco document matches the url '/RegistrazioneFamiglia'.". Inserisco esempi: Partial view "Family" (anche documentype and item sotto home)

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Famiglia>
    @using ContentModels = Umbraco.Web.PublishedModels;
    @{
        Layout = "master.cshtml";
    }
    <section class="section">
    Html.Partial("~/Views/Partials/Famiglia/LoginFamiglia.cshtml", new Roma2021Model.Shared.LoginModel())
    
    </section>
    
    Partial LoginFamiglia:
    @model Roma2021Model.Shared.LoginModel
    @using (Html.BeginUmbracoForm("LoginFamiglia", "FamigliaSurface"))
    {
      ....form per login ....
    
     @Html.ActionLink("Registrazione", "RegistrazioneFamiglia", "FamigliaSurface");
          }
    

    1171/5000 Hello to all. I am new to umbraco and have a problem. I created a "Family" view (and document type and itme menu under HOME) which inside has a partial view with a Login form. If you are not registered, I have a link that sends you to the registration form. I created a document type "Family Registration" with its partial view and controller. How do I insert the link into the login? If I enter "https: // localhost: 44307 / RegistrationFamily" it exits "Page not found No umbraco document matches the url '/ RegistrationFamily'. ". I insert examples: Partial view "Family" (also documentype and item under home)

    @inherits Umbraco.Web.Mvc.UmbracoViewPage <ContentModels.Famiglia>
    @using ContentModels = Umbraco.Web.PublishedModels;
    {@
    Layout = "master.cshtml";
    }
    <section class = "section">
    Html.Partial ("~ / Views / Partials / Family / LoginFamiglia.cshtml", new Roma2021Model.Shared.LoginModel ())
    
    </ Section>
    
    Partial LoginFamily:
    @model Roma2021Model.Shared.LoginModel
    @using (Html.BeginUmbracoForm ("LoginFamiglia", "FamigliaSurface"))
    {
      .... form for login ....
    
     @ Html.ActionLink ("Registration", "RegistrationFamily", "FamigliaSurface");
          }
    
Please Sign in or register to post replies

Write your reply to:

Draft