2012-01-31 4 views
0

외부 프로젝트에서 가져온 일부 HTML 도우미가 있습니다. ASPX 파일에서 어떻게 참조 할 수 있습니까?ASP.NET MVC ASPX 페이지에 대한 참조 추가

Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper<LC.TLAdminMVC.DAL.BusinessObjects.CompanySingleViewModel>' does not contain a definition for 'Configurator' and no extension method 'Configurator' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<LC.TLAdminMVC.DAL.BusinessObjects.CompanySingleViewModel>' could be found (are you missing a using directive or an assembly reference?) 
+0

가능한 복제본 [aspx 뷰에서 'using'문을 사용할 수 있습니까? (ASP.NET MVC)] (http://stackoverflow.com/questions/1697169/is-it-possible-to-use-the-using-statement-in-my-aspx-views-asp-net-mvc) – Eranga

답변

0

더 나은 당신이 한 질문에 대답 할 수 있습니다 상황을 이해하려면 :

현재 나는 다음과 같은 오류가 발생합니다.

도우미 메서드를 aspx 파일 안에 넣었습니까? 외부입니까?

가 외부에있는 경우

  1. 라는 솔루션의 디렉토리 확인 : 새로운 파일을 생성을 App_Code
  2. 을, 어떤 이름을 당신이 원하는
  3. (우리는 '콘텐츠'를 부를 것이다) 도우미 메서드를 사용하여 바로 전화 Content.methodName (PARAMS)

그들은 내부 경우 :

블록 안에 중첩되어 있지 않은지 확인해보십시오.

도움이 되길 바랍니다.

관련 문제