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. Javascript Problem

Javascript Problem

Scheduled Pinned Locked Moved ASP.NET
helpjavascripttutorialquestion
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.
  • M Offline
    M Offline
    monika_vasvani
    wrote on last edited by
    #1

    Hi I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika

    _ E R 3 Replies Last reply
    0
    • M monika_vasvani

      Hi I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      I don't think that directly you can use it in your code behind. What you can do is to store that in one hidden field and then use it in your code behind.

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • M monika_vasvani

        Hi I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika

        E Offline
        E Offline
        ednrgc
        wrote on last edited by
        #3

        Store it in a hidden field, and use the value on the next postback.

        1 Reply Last reply
        0
        • M monika_vasvani

          Hi I have one confusion if u have solution pls reply me. I have one function in javascript.This function returns value. How to use this return value in aspx page? function call() { retrun val; } How to use this value in my aspx page? I call javascript function like:ddl_category,attributes.add("onchange","call();") I want a value from function in my aspx page. Pls help me Thanks monika

          R Offline
          R Offline
          ravie gopal
          wrote on last edited by
          #4

          Add a hidden Control(with runat=server) to your page. Access that control in your javascript and save the value that you want to take it to the webserver. After the request gets submitted to the server, you can access the hidden control from your aspx code-behind and proceed. Ravie...

          Ravi Gopal.

          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