MyWebPagesStarterKit in VB.net

Topics: Developer Forum, Localization Forum, Project Management Forum, User Forum
Jan 5, 2009 at 2:49 PM
This starter kit i a  amazing one i have to really admit it  .And i  converted this from C# to VB.net .Everything is working fine ,converting from C# to VB.net is  a bit difficult one, in c# we can easily get the 'Type' of interfaces eg
in SectionAdmin.ascx.cs  in function Page_Render
      string ResourceID = "ctl_" + _section.Section.GetType().Name + "_RssTitle";
is working fine in c#
but in Vb.net it is not working because we cannot directly call _section.Section.GetType().Name bcoz it will create a runtime error .
so i declare an object and then call the gettype like this
     Dim s As Object = _section.Section
     Dim ResourceID As String = "ctl_" & s.GetType.Name & "_RssTitle"
i have to use this method  in  more situations and also there are some problems in implementing interfaces due to difference in implementing interfaces in C# and VB.net.

Thank u