i have create one folder in mvc application folder, name as Helper
in that folder i have one class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcApplication43.Models;
using System.Web.Mvc;
using System.Text;
public static class DynamicFormHelper
{
public static string disp(this HtmlHelper helper)
{
return "
Welcome
";}
}
i call this function in view like below
@using (Html.BeginForm())
{
@Html.disp();
}
i got output in aspx view engine
Welcome
but i got output in cshtml view engineWelcome
pls tell any one..
ananth ganapathyPosted Feb 21, 2014, 11:33 PM
I got a Answer...
Call that function like below..
@Html.Raw(Html.Disp())