help for a begginer - part II - convert code to .VB

  1. #1

    Convert code C# to .VB

    HI!
    <script runat="server">
             
               [DirectMethod(Namespace = "cb")]
               public void DoSomething()
               {
                   X.Msg.Notify("Server Time (Listener)", DateTime.Now.ToLongTimeString()).Show();
               }
               
    </script>
    Anyone know is this code in VB

    try this code but does not work:

      <script runat="server">
          < DirectMethod (Namespace = "cb")>     
          Public Sub DoSomething()
              X.Msg.Notify("Server Time (Listener)", DateTime.Now.ToLongTimeString()).Show()
          End Sub
        </script>
    Last edited by julioc_m18; Feb 10, 2011 at 8:04 PM.
  2. #2
    [DirectMethod(Namespace = "cb")]
    <DirectMethod(Namespace = "DataSource")>
    Do you see the difference?
  3. #3
    Quote Originally Posted by nextSTEP View Post
    [DirectMethod(Namespace = "cb")]
    <DirectMethod(Namespace = "DataSource")>
    Do you see the difference?

    Shure friend, but the error I have is in the syntax.

    but you're right, I confused letters to publish this post.
  4. #4
    When you have an error in the syntax, the compiler should tell you which one it is.

    <DirectMethod([Namespace] := "cb")> _
    Public Sub DoSomething()
        X.Msg.Notify("Server Time (Listener)", DateTime.Now.ToLongTimeString()).Show()
    End Sub

Similar Threads

  1. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  2. Replies: 0
    Last Post: Jun 21, 2011, 2:51 AM
  3. [CLOSED] REST with WCF - part 2
    By daneel in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 14, 2011, 2:40 PM
  4. Convert FormPanel from Html-Code to VB.Net Code
    By stephan1985 in forum 1.x Help
    Replies: 1
    Last Post: Jan 27, 2010, 3:47 PM
  5. Integration with Web Part Personalization
    By jallenby in forum 1.x Help
    Replies: 2
    Last Post: Nov 05, 2008, 5:30 AM

Posting Permissions