This is a migrated thread and some comments may be shown as answers.

[Solved] [SourceCodeFile()] attribute in vb.net?

2 Answers 631 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nick Pepper
Top achievements
Rank 1
Nick Pepper asked on 11 Mar 2010, 04:43 PM
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();
        }
    }
}




2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Mar 2010, 04:57 PM
Hello Nick Pepper,

You don't need the SourceCodeFile attribute. It is required only by the code viewer component which we are using in the online examples.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nick Pepper
Top achievements
Rank 1
answered on 17 Mar 2010, 08:16 PM
Many thanks! Nick
Tags
Grid
Asked by
Nick Pepper
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nick Pepper
Top achievements
Rank 1
Share this question
or