I have a page X.cshtml with the following code:
@helper CodeTest{
<h1>Test</h1>
}
And on my page Y.cshtml like to use this helper … how can I call him?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Move the helper from X.cshtml to Z.cshtml, which you should put in App_Code. Then you can call it from anywhere in your application.