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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Variables

Variables

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-net
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.
  • E Offline
    E Offline
    ellllllllie
    wrote on last edited by
    #1

    hello, Is it anyway to share variables or objects between javascript and c# in ASP.net 2.0 application best regards

    dghdfghdfghdfghdgh

    A T C 3 Replies Last reply
    0
    • E ellllllllie

      hello, Is it anyway to share variables or objects between javascript and c# in ASP.net 2.0 application best regards

      dghdfghdfghdfghdgh

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      May be this link will help you... Try this, http://www.ajaxpro.info/[^]

      Arun J

      My Blog

      1 Reply Last reply
      0
      • E ellllllllie

        hello, Is it anyway to share variables or objects between javascript and c# in ASP.net 2.0 application best regards

        dghdfghdfghdfghdgh

        T Offline
        T Offline
        Tarun Dudhatra
        wrote on last edited by
        #3

        Hi buddy, I don't think so that you can share any variable or object with Javascript(ClientSideScript) and C#(ServerSideScript). And if you want to use variable then you can use hidden field server side so both C# and Javascript can access it easily. Hope it will help http://techiefromsurat.blogspot.com/

        1 Reply Last reply
        0
        • E ellllllllie

          hello, Is it anyway to share variables or objects between javascript and c# in ASP.net 2.0 application best regards

          dghdfghdfghdfghdgh

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

          The easiest way is a hidden field on the page, use that to pass values back to C#. An AJAX call works too, but if you're not using AJAX, a hidden field is easier.

          Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

          E 1 Reply Last reply
          0
          • C Christian Graus

            The easiest way is a hidden field on the page, use that to pass values back to C#. An AJAX call works too, but if you're not using AJAX, a hidden field is easier.

            Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

            E Offline
            E Offline
            ellllllllie
            wrote on last edited by
            #5

            Hi mmm is it any example in ajax that explain how to do it ? regards

            dghdfghdfghdfghdgh

            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