More in this section
Forums / Bugs & Issues / Html.BeginFormSiteFinity – namespace error

Html.BeginFormSiteFinity – namespace error

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Jiri
    Jiri avatar
    0 posts
    27 Dec 2017
    02 Jan
    Link to this post

    I am going through tutorials during 30 day evaluation. In video at 1:53 it can be seen code that is no longer valid since namespace Telerik.Web.Mvc.UI does not exist in sample application.

    My code:

    @using Telerik.Sitefinity.UI.MVC
    @using Telerik.Sitefinity.Mvc
    @using SitefinityWebApp.Helpers
    @model SitefinityWebApp.Mvc.Models.BugModel
    <h1>Create a Bug</h1>
    @*@using (Telerik.Sitefinity.UI.MVC.SitefinityExtensions.BeginFormSitefinity(Html, "CreateBug", "BugForm"))*@
    @using (Html.BeginFormSiteFinity("CreateBug", "BugForm"))
        <input type="submit" value="save" />

    The code above does not employ first 2 usings so it must be worked around as you can see in commented line.

    How to fix this?

    See error log.
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    01 Jul 2014
    03 Jan
    Link to this post

    I've already answered t oyou on your question on SO:


    I will repeat it here as well, in case if someone else  will have the same issue.


    Correct method name is BeginFormSitefinity. You wrote BeginFormSiteFinity and error log is saying that it cannot find the method with this name.  You should fix your line to:

    @using (Html.BeginFormSitefinity("CreateBug", "BugForm"))



2 posts, 0 answered