Skip to content

Infragistics Community Forum / Web / Ignite UI for ASP.NET MVC / HtmlHelper Missing BeginForm, LabelFor, IgniteUI- jQuery MVC

HtmlHelper Missing BeginForm, LabelFor, IgniteUI- jQuery MVC

New Discussion
Allen Zinyama
Allen Zinyama asked on Oct 13, 2014 2:46 PM

Good day all!!!

I’m getting the following errors with the code below. It is a aspx page that I’m trying to create with mvc.

  1. System.Web.Mvc.HtmlHelper<Claim.Models.user> does not contain a definition for Infragistics and no extension method Infragistics acception a first argument of type System.Web.Mvc.HtmlHelper<Claim.Models.user> could not be found.
  2. System.Web.Mvc.HtmlHelper<Claim.Models.user> does not contain a definition for LabelFor and no extension method LabelFor acception a first argument of type System.Web.Mvc.HtmlHelper<Claim.Models.user> could not be found.
  3. System.Web.Mvc.HtmlHelper<Claim.Models.user> does not contain a definition for BeginForm and no extension method BeginForm acception a first argument of type System.Web.Mvc.HtmlHelper<Claim.Models.user> could not be found.

What have I missed. If it’s something stupid please don’t laugh at the newbie :)…

<%–By defining the model type here, it is accessed in the View using the Model property–%>
<%@ Page Language=”C#” Inherits=”System.Web.Mvc.ViewPage<Claim.Models.user>” %>

<%–Reference the Infragistics ASP.NET MVC Helpers Assembly–%>
<%@ Import Namespace=”Infragistics.Web.Mvc” %>

<!DOCTYPE html>

<html>
<head>
<meta name=”viewport” content=”width=device-width” />
<title>ClaimCatch – RIS</title>
<!– These styles aren’t required but provide better
styling for labels on the running sample –>
<style>
BODY {
font: 1em “Segoe UI”,Helvetica,Tahoma,Arial,Verdana,sans-serif;
}
H2 {
margin: 40px 0 0 0;
}
H3 {
margin: 10px 0 0 0;
}
</style>

<!– Required JavaScript Files for using Infragistics jQuery UI-based
widgets with the Infragistics Loader –>
<script src=”<%= Url.Content(“~/Scripts/modernizr-2.5.3.js”)%>”></script>
<script src=”<%= Url.Content(“~/Scripts/jquery-1.7.1.js”)%>”></script>
<script src=”<%= Url.Content(“~/Scripts/jquery-ui-1.8.20.js”)%>”></script>

<!– This script reference is require by the Infragistics Loader rendered below –>
<script src=”<%= Url.Content(“~/Infragistics/js/infragistics.loader.js”)%>”></script>
</head>
<body>

<!– The Infragistics Loader is used to load required Infragistics JavaScript
and CSS resources on the rendered page. Using ths helper, it is required to
supply the loader with a path to the Infragistics JavaScript files and a path to
the CSS files.

The loader dynamically determines which required scripts and CSS
must be referenced based off of the Infragistics components used in this View.
The loader itself requires one JavaScript reference defined above. –>
<%= Html.Infragistics().Loader()
.ScriptPath(Url.Content(“~/Infragistics/js/”))
.CssPath(Url.Content(“~/Infragistics/css/”))
.Render()
%>

<!– All of the Infragistics ASP.NET MVC helpers use a chaining
API pattern. The helpers require that Render() be the last method
called. This method renders all of the HTML and JavaScript for
the jQuery UI widget on the page–>

<% using (Html.BeginForm()) %>
<% { %>
<p>
<%= Html.LabelFor(m => m.User_UserName) %>
<%= Html.Infragistics()
.TextEditorFor(m => m.User_UserName)
.Render() %>
</p>
<p>
<%= Html.LabelFor(m => m.User_Password) %>
<%= Html.Infragistics()
.NumericEditorFor(m => m.User_Password)
.Render() %>
</p>
<p>
<input type=”submit” value=”Create” />
</p>
<% } %>

</body>
</html>

Sign In to post a reply

Replies

  • 0
    Ivaylo Ganchev
    Ivaylo Ganchev answered on Oct 13, 2014 2:46 PM

    Hello Allen ,

    The reason could be because it is required to set Copy Local for the required InfragisticsWebMVC.dll file.
    I believe you will find the following forum thread helping you, as a similar issue is discussed:
    http://www.infragistics.com/community/forums/t/65389.aspx 

    Additional resources:
    http://stackoverflow.com/questions/10761484/system-web-mvc-htmlhelper-does-not-contain-a-definition-for-enumdropdownlistfor
    Please let me know how these work for you and if you require additional information!

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Allen Zinyama
Favorites
0
Replies
1
Created On
Oct 13, 2014
Last Post
11 years, 11 months ago

Suggested Discussions

Created by

Created on

Oct 13, 2014 2:46 PM

Last activity on

Feb 11, 2026 6:48 PM