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. asp.net c# conversion help in vb.net

asp.net c# conversion help in vb.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdesigntools
9 Posts 5 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.
  • A Offline
    A Offline
    amistry_petlad
    wrote on last edited by
    #1

    Hi all please help me to convert following code public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }

    I A S 3 Replies Last reply
    0
    • A amistry_petlad

      Hi all please help me to convert following code public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      amistry_petlad wrote:

      Hi all please help me to convert

      Visit Convert C# to VB

      please don't forget to vote on the post that helped you.

      N 1 Reply Last reply
      0
      • A amistry_petlad

        Hi all please help me to convert following code public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }

        A Offline
        A Offline
        Arindam Tewary
        wrote on last edited by
        #3

        What difficulty? :doh: :sigh: Here the class implements ICallbackEventHandler and iherits from Page class !!!

        Thanks, Arindam D Tewary

        1 Reply Last reply
        0
        • A amistry_petlad

          Hi all please help me to convert following code public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }

          S Offline
          S Offline
          Sherin Iranimose
          wrote on last edited by
          #4

          amistry_petlad wrote:

          asp.net c# conversion help in vb.net

          Do you want convert this to vb?

          EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

          A 1 Reply Last reply
          0
          • S Sherin Iranimose

            amistry_petlad wrote:

            asp.net c# conversion help in vb.net

            Do you want convert this to vb?

            EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

            A Offline
            A Offline
            amistry_petlad
            wrote on last edited by
            #5

            yes

            S 1 Reply Last reply
            0
            • A amistry_petlad

              yes

              S Offline
              S Offline
              Sherin Iranimose
              wrote on last edited by
              #6

              Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Dim lst As IList Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements ICallbackEventHandler.RaiseCallbackEvent 'Operations End Sub End Class implement all functions in ICallbackEventHandler in same way. If you are not able to do come back.

              EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

              A 1 Reply Last reply
              0
              • I Imran Khan Pathan

                amistry_petlad wrote:

                Hi all please help me to convert

                Visit Convert C# to VB

                please don't forget to vote on the post that helped you.

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #7

                Imran Khan Pathan wrote:

                Visit Convert C# to VB

                It's a bad tool. It generates incorrect code most of the time.

                All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                1 Reply Last reply
                0
                • S Sherin Iranimose

                  Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Dim lst As IList Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements ICallbackEventHandler.RaiseCallbackEvent 'Operations End Sub End Class implement all functions in ICallbackEventHandler in same way. If you are not able to do come back.

                  EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

                  A Offline
                  A Offline
                  amistry_petlad
                  wrote on last edited by
                  #8

                  help me to handle this code in vb.net I have put one textbox and when someone try to type inside the like name it will be fetch from the datbase and listout that names below in the textbox area then he can select and submit that text. e.g. example suppose somebody push his first two letter 'am' then the request goes like criteria inside and fetch that name list like amit ,amika,amrita and so on and that person select one name and submit that name. so for that I have got one application from the code project but i have to need some help for initial part. so please anybody can help me its urgent Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load **RegisterClientCallbacks()** End Sub Protected Sub RegisterClientCallbacks() Dim callbackRef As String Dim script As String callbackRef = ClientScript.GetCallbackEventReference(Me, "arg", "RecieveServerData", "context") script = String.Empty If Not ClientScript.IsClientScriptBlockRegistered("CallServer") Then script = "function CallServer(arg,Context) { " + callbackRef + "}" ClientScript.RegisterClientScriptBlock(Me.GetType(), "CallServer", script, True) End If //help me to write this code in vb.net //c# public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } //end c# End Sub this codebehind it is in .cs now moving on .aspx page Search var word = ''; var UP = 38; var DOWN = 40; var ENTER = 13; var index = -1; var TAB = 9; var BACKSPACE = 8; var table = null; var rows = null; var selectedRow = null; function GetProducts(e) { var keynum var keychar var num</x-turndown>

                  S 1 Reply Last reply
                  0
                  • A amistry_petlad

                    help me to handle this code in vb.net I have put one textbox and when someone try to type inside the like name it will be fetch from the datbase and listout that names below in the textbox area then he can select and submit that text. e.g. example suppose somebody push his first two letter 'am' then the request goes like criteria inside and fetch that name list like amit ,amika,amrita and so on and that person select one name and submit that name. so for that I have got one application from the code project but i have to need some help for initial part. so please anybody can help me its urgent Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load **RegisterClientCallbacks()** End Sub Protected Sub RegisterClientCallbacks() Dim callbackRef As String Dim script As String callbackRef = ClientScript.GetCallbackEventReference(Me, "arg", "RecieveServerData", "context") script = String.Empty If Not ClientScript.IsClientScriptBlockRegistered("CallServer") Then script = "function CallServer(arg,Context) { " + callbackRef + "}" ClientScript.RegisterClientScriptBlock(Me.GetType(), "CallServer", script, True) End If //help me to write this code in vb.net //c# public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } //end c# End Sub this codebehind it is in .cs now moving on .aspx page Search var word = ''; var UP = 38; var DOWN = 40; var ENTER = 13; var index = -1; var TAB = 9; var BACKSPACE = 8; var table = null; var rows = null; var selectedRow = null; function GetProducts(e) { var keynum var keychar var num</x-turndown>

                    S Offline
                    S Offline
                    Sherin Iranimose
                    wrote on last edited by
                    #9

                    public Function GetCallbackResult() as String Implements ICallbackEventHandler.GetCallbackResult return HtmlTableHelper.ConvertProductListToTable(list) End Function public sub RaiseCallbackEvent(byval eventArgument as string )Implements ICallbackEventHandler.RaiseCallbackEvent if String.IsNullOrEmpty(eventArgument)<>True then list = ProductRepository.GetProducts(eventArgument) end if End Sub

                    EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

                    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