embedd java script in C # code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankitkhare
    New Member
    • Sep 2009
    • 15

    embedd java script in C # code

    Hi,
    I have this javascript which i am trying to embedd in my C# code,i am not sure whether it is even possible or not! If it is possible then how can i do it?Any document or links will be helpful,

    Thanks,
    Ankit Khare
  • cloud255
    Recognized Expert Contributor
    • Jun 2008
    • 427

    #2
    Hi

    Javascript is a client side language and C# server side. This means that Javascript will be executed on the client while C# code is executed on the server and the result is returned to the client.

    Originally posted by ankitkhare
    If it is possible then how can i do it?
    What exactly is it you are trying to achieve?

    Comment

    • ankitkhare
      New Member
      • Sep 2009
      • 15

      #3
      Hi,
      Well i have this javascript for a "carousel menu" which i want to use in my C# standalone application.I was unable to find specifically for C# so i thought there might be some way out.
      Can you suggest me any website where i can find any widgets etc for C#?


      Regards,
      Ankit Khare

      Comment

      • cloud255
        Recognized Expert Contributor
        • Jun 2008
        • 427

        #4
        Well if you have the javascript code, you could just translate the algorithm to C# (using the appropriate libraries) and everything should work just fine...

        There seem to be one or two engines capable of converting C# to javascript, I didn't find any that translate javascript to C#. But doing the translation by hand should not prove to difficult or time consuming.

        Comment

        • GaryTexmo
          Recognized Expert Top Contributor
          • Jul 2009
          • 1501

          #5
          If you manage to get it working and have a good process for doing it, this topic might make an interesting choice for the C# insights forum :)

          That place is sadly sparse. I keep meaning to put something there but never get around to it, or second guess my topic choice. I keep thinking I want to do something on XML since a lot of questions come through here about that, but keep putting it aside. One day...

          Comment

          • ankitkhare
            New Member
            • Sep 2009
            • 15

            #6
            Hello,
            Well i am not very sure how i am gonna do that...i mean manually converting javascript to C# code.I am totally new to C#,so dont have much idea on it.If you can guide me on this,that will be of great help.

            Regards,
            Ankit

            Comment

            • ssnaik84
              New Member
              • Aug 2009
              • 149

              #7
              javascript can be integrated into html pages.
              you cant embed directly into winforms

              try working around System.Windows. Forms.WebBrowse r
              you might find solution

              Comment

              Working...