Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Urgent convert from vb.net to c#

Urgent convert from vb.net to c#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurityannouncement
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    the whole code that i want to convert is as: If you could convert plz . Public MustInherit Class ShopList Inherits Entities.Modules.PortalModuleBase Implements Entities.Modules.IActionable Implements Entities.Modules.IPortable Implements Entities.Modules.ISearchable Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Public ReadOnly Property ModuleActions() As _ DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _ Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions Get Dim Actions As New _ Entities.Modules.Actions.ModuleActionCollection Actions.Add(GetNextActionID, _ Localization.GetString( _ Entities.Modules.Actions.ModuleActionType.AddContent, _ LocalResourceFile), _ Entities.Modules.Actions.ModuleActionType.AddContent, _ "", _ "", _ EditUrl(), _ False, _ Security.SecurityAccessLevel.Edit, _ True, _ False) Return Actions End Get End Property Public Function ExportModule(ByVal ModuleID As Integer) _ As String Implements _ DotNetNuke.Entities.Modules.IPortable.ExportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function Public Sub ImportModule(ByVal ModuleID As Integer, _ ByVal Content As String, _ ByVal Version As String, _ ByVal UserID As Integer) _ Implements DotNetNuke.Entities.Modules.IPortable.ImportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Sub Public Function GetSearchItems( _ ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _ As DotNetNuke.Services.Search.SearchItemInfoCollection _ Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function End Class

    R G D 3 Replies Last reply
    0
    • L Lost User

      the whole code that i want to convert is as: If you could convert plz . Public MustInherit Class ShopList Inherits Entities.Modules.PortalModuleBase Implements Entities.Modules.IActionable Implements Entities.Modules.IPortable Implements Entities.Modules.ISearchable Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Public ReadOnly Property ModuleActions() As _ DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _ Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions Get Dim Actions As New _ Entities.Modules.Actions.ModuleActionCollection Actions.Add(GetNextActionID, _ Localization.GetString( _ Entities.Modules.Actions.ModuleActionType.AddContent, _ LocalResourceFile), _ Entities.Modules.Actions.ModuleActionType.AddContent, _ "", _ "", _ EditUrl(), _ False, _ Security.SecurityAccessLevel.Edit, _ True, _ False) Return Actions End Get End Property Public Function ExportModule(ByVal ModuleID As Integer) _ As String Implements _ DotNetNuke.Entities.Modules.IPortable.ExportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function Public Sub ImportModule(ByVal ModuleID As Integer, _ ByVal Content As String, _ ByVal Version As String, _ ByVal UserID As Integer) _ Implements DotNetNuke.Entities.Modules.IPortable.ImportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Sub Public Function GetSearchItems( _ ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _ As DotNetNuke.Services.Search.SearchItemInfoCollection _ Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function End Class

      R Offline
      R Offline
      R Prabha Devi
      wrote on last edited by
      #2

      Hi Try the below link for conversions..... http://www.carlosag.net/Tools/CodeTranslator/Default.aspx[^] Hope helps u :)

      1 Reply Last reply
      0
      • L Lost User

        the whole code that i want to convert is as: If you could convert plz . Public MustInherit Class ShopList Inherits Entities.Modules.PortalModuleBase Implements Entities.Modules.IActionable Implements Entities.Modules.IPortable Implements Entities.Modules.ISearchable Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Public ReadOnly Property ModuleActions() As _ DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _ Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions Get Dim Actions As New _ Entities.Modules.Actions.ModuleActionCollection Actions.Add(GetNextActionID, _ Localization.GetString( _ Entities.Modules.Actions.ModuleActionType.AddContent, _ LocalResourceFile), _ Entities.Modules.Actions.ModuleActionType.AddContent, _ "", _ "", _ EditUrl(), _ False, _ Security.SecurityAccessLevel.Edit, _ True, _ False) Return Actions End Get End Property Public Function ExportModule(ByVal ModuleID As Integer) _ As String Implements _ DotNetNuke.Entities.Modules.IPortable.ExportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function Public Sub ImportModule(ByVal ModuleID As Integer, _ ByVal Content As String, _ ByVal Version As String, _ ByVal UserID As Integer) _ Implements DotNetNuke.Entities.Modules.IPortable.ImportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Sub Public Function GetSearchItems( _ ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _ As DotNetNuke.Services.Search.SearchItemInfoCollection _ Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function End Class

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        1. Don't write in the subject that it's urgent. That information is not interresting or relevant enough to be in the subject. 2. Keep it in the same thread, in the same forum. If you feel that you need to post in different forums, link to the thread that you already started in the C# forum. --- b { font-weight: normal; }

        1 Reply Last reply
        0
        • L Lost User

          the whole code that i want to convert is as: If you could convert plz . Public MustInherit Class ShopList Inherits Entities.Modules.PortalModuleBase Implements Entities.Modules.IActionable Implements Entities.Modules.IPortable Implements Entities.Modules.ISearchable Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Public ReadOnly Property ModuleActions() As _ DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _ Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions Get Dim Actions As New _ Entities.Modules.Actions.ModuleActionCollection Actions.Add(GetNextActionID, _ Localization.GetString( _ Entities.Modules.Actions.ModuleActionType.AddContent, _ LocalResourceFile), _ Entities.Modules.Actions.ModuleActionType.AddContent, _ "", _ "", _ EditUrl(), _ False, _ Security.SecurityAccessLevel.Edit, _ True, _ False) Return Actions End Get End Property Public Function ExportModule(ByVal ModuleID As Integer) _ As String Implements _ DotNetNuke.Entities.Modules.IPortable.ExportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function Public Sub ImportModule(ByVal ModuleID As Integer, _ ByVal Content As String, _ ByVal Version As String, _ ByVal UserID As Integer) _ Implements DotNetNuke.Entities.Modules.IPortable.ImportModule ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Sub Public Function GetSearchItems( _ ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _ As DotNetNuke.Services.Search.SearchItemInfoCollection _ Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems ' included as a stub only so that the core 'knows this module Implements Entities.Modules.IPortable End Function End Class

          D Offline
          D Offline
          Dave Doknjas
          wrote on last edited by
          #4

          Our Instant C# VB to C# converter produces: public abstract class ShopList : Entities.Modules.PortalModuleBase, Entities.Modules.IActionable, Entities.Modules.IPortable, Entities.Modules.ISearchable { //TODO: INSTANT C# TODO TASK: Insert the following converted event handlers at the end of the 'InitializeComponent' method for forms or into a constructor for other classes: this.Load += new System.EventHandler(Page_Load); private void Page_Load(object sender, System.EventArgs e) { //Put user code to initialize the page here } public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions { get { Entities.Modules.Actions.ModuleActionCollection Actions = new Entities.Modules.Actions.ModuleActionCollection(); Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), false, Security.SecurityAccessLevel.Edit, true, false); return Actions; } } public string ExportModule(int ModuleID) { // included as a stub only so that the core //knows this module Implements Entities.Modules.IPortable //INSTANT C# NOTE: Inserted the following 'return' since all code paths must return a value in C#: return null; } public void ImportModule(int ModuleID, string Content, string Version, int UserID) { // included as a stub only so that the core //knows this module Implements Entities.Modules.IPortable } public DotNetNuke.Services.Search.SearchItemInfoCollection GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo ModInfo) { // included as a stub only so that the core //knows this module Implements Entities.Modules.IPortable //INSTANT C# NOTE: Inserted the following 'return' since all code paths must return a value in C#: return null; } } David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter and VB to C++ converter Instant J#: VB to J# converter Clear VB: Cleans up VB.NET code Clear C#: Cleans up C# code

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups