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. is it possible?

is it possible?

Scheduled Pinned Locked Moved ASP.NET
questionjavascript
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.
  • H Offline
    H Offline
    Hema Bairavan
    wrote on last edited by
    #1

    Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance

    A D F 3 Replies Last reply
    0
    • H Hema Bairavan

      Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      As far as I know, there is no conventional method to do so. Even if you achieve it somehow, it is useless unless you process data entered at client's browser. "Eval()" function is the only thing I can consider which might be needed at server side from JavaScript. BTW, Why do you want to do so? Just call your JavaScript function in client side, Post the result back to the server, then you can access the result at the server. After wards, you can process on the result there.

      Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

      1 Reply Last reply
      0
      • H Hema Bairavan

        Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance

        D Offline
        D Offline
        Dinesh Mani
        wrote on last edited by
        #3

        Am I correct in saying that you need to execute a javascript function after a particular event has been completed and the server has rendered the resultant page to the client? If this is what you need then, just use the RegisterStartupScript method in the Page / ClientScript object, based on your version on ASP.NET, to place a call to the javascript function. This call would be executed once the browser receives the markup

        1 Reply Last reply
        0
        • H Hema Bairavan

          Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance

          F Offline
          F Offline
          farogh haider
          wrote on last edited by
          #4

          Hi, User server side script to do this

          Farogh Haider Web developer

          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