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. Hot to get client side value to server side

Hot to get client side value to server side

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

    Hi, I want to pass client sid value to server side. when I click radio button it calls javascript function where am getting radio button value and displaying in label. now when I click on Next button I wanted that radion button value. am adding radion buttons dynamically.. Can any one guide me.. am using asp.net 2.0 and c#. Thanks

    E C S 3 Replies Last reply
    0
    • C chakran

      Hi, I want to pass client sid value to server side. when I click radio button it calls javascript function where am getting radio button value and displaying in label. now when I click on Next button I wanted that radion button value. am adding radion buttons dynamically.. Can any one guide me.. am using asp.net 2.0 and c#. Thanks

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      If the radio button is c# then just get the value as so else if (RadioButtonList_update_type.SelectedValue == "something")

      C 1 Reply Last reply
      0
      • E eyeseetee

        If the radio button is c# then just get the value as so else if (RadioButtonList_update_type.SelectedValue == "something")

        C Offline
        C Offline
        chakran
        wrote on last edited by
        #3

        Hi, am adding radio button dynamically. so on serverside Radiobuttonlist.selecteditem.value is not working. it is showing null ... Can you tell me how to pass values from client side to server side. Thanks

        1 Reply Last reply
        0
        • C chakran

          Hi, I want to pass client sid value to server side. when I click radio button it calls javascript function where am getting radio button value and displaying in label. now when I click on Next button I wanted that radion button value. am adding radion buttons dynamically.. Can any one guide me.. am using asp.net 2.0 and c#. Thanks

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

          If yuo're adding them dynamically, the ids of the checked ones will be in the form object on postback. There will be no viewstate probably unless they are being added pruior to pageload.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          1 Reply Last reply
          0
          • C chakran

            Hi, I want to pass client sid value to server side. when I click radio button it calls javascript function where am getting radio button value and displaying in label. now when I click on Next button I wanted that radion button value. am adding radion buttons dynamically.. Can any one guide me.. am using asp.net 2.0 and c#. Thanks

            S Offline
            S Offline
            Spunky Coder
            wrote on last edited by
            #5

            If radio button is added dynamically, probably you can retrieve it from the Request.Params[]..the other way is that have a server side hidden field at first and in the javascript push the value into the hidden field and retrieve it in the post back..

            .....

            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