This question is locked. New answers and comments are not allowed.
Hi i'm trying to work through the example on the Telerix website for binding a MVC rad grid to a WCF service. I've built my WCF service and DTO objects fine however i'm unable to use the SourceCodeFile attribute. I'm coding in VB.NET. Below is the example from the telerik demo website higlighted in bold is the SourceCodeFile attribute which i'm simply unable to access in vb.net. If any one could show me how to access this attribute, what namespaces to use etc or even better still give me an example in vb.net i'd be very grateful.
Many thanks
Nick
namespace Telerik.Web.Mvc.Examples
{
using System.Web.Mvc;
public partial class GridController : Controller
{
[SourceCodeFile("Order DTO", "~/Models/OrderDto.cs")]
[SourceCodeFile("ASMX Web Service", "~/Models/Orders.asmx.cs")]
[SourceCodeFile("WCF Web Service", "~/Models/Orders.svc.cs")]
public ActionResult WebService()
{
return View();
}
}
}
Many thanks
Nick
namespace Telerik.Web.Mvc.Examples
{
using System.Web.Mvc;
public partial class GridController : Controller
{
[SourceCodeFile("Order DTO", "~/Models/OrderDto.cs")]
[SourceCodeFile("ASMX Web Service", "~/Models/Orders.asmx.cs")]
[SourceCodeFile("WCF Web Service", "~/Models/Orders.svc.cs")]
public ActionResult WebService()
{
return View();
}
}
}