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. How to recieve value from javascript function

How to recieve value from javascript function

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttutorial
5 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.
  • S Offline
    S Offline
    Sapan Roy
    wrote on last edited by
    #1

    :confused:Hi All, I have a javascript function change() which returns var id. while I am calling this function like this TextBox1.Text = change(). I am getting an error can not convert void to string. Is there any way to solve this out... Help me. Thanks Sapan

    Hi all go for this...

    S C 2 Replies Last reply
    0
    • S Sapan Roy

      :confused:Hi All, I have a javascript function change() which returns var id. while I am calling this function like this TextBox1.Text = change(). I am getting an error can not convert void to string. Is there any way to solve this out... Help me. Thanks Sapan

      Hi all go for this...

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Don't Cross Post.

      Regards, Satips.:rose:

      T 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        Don't Cross Post.

        Regards, Satips.:rose:

        T Offline
        T Offline
        Tamimi Code
        wrote on last edited by
        #3

        please change your name font, its realy annoying :rolleyes::rolleyes: excuse me..

        When you get mad...THINK twice that the only advice Tamimi - Code

        S 1 Reply Last reply
        0
        • T Tamimi Code

          please change your name font, its realy annoying :rolleyes::rolleyes: excuse me..

          When you get mad...THINK twice that the only advice Tamimi - Code

          S Offline
          S Offline
          Sathesh Sakthivel
          wrote on last edited by
          #4

          Changed.

          Regards, Satips.:rose:

          1 Reply Last reply
          0
          • S Sapan Roy

            :confused:Hi All, I have a javascript function change() which returns var id. while I am calling this function like this TextBox1.Text = change(). I am getting an error can not convert void to string. Is there any way to solve this out... Help me. Thanks Sapan

            Hi all go for this...

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            As I said in the C# function, your code snippet is half C# and half jscript. Where is it called ? You need to use the client side Id, and you need to use document.getElementById to find the control from that id. Then you can set the text on the client side, and it will persist on the server.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            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