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. javascript to access, a .net server side control in javascript function

javascript to access, a .net server side control in javascript function

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptcomsysadminhelp
6 Posts 3 Posters 1 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.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    Can you please help me in javascript to access, a .net server side control in javascript function and to read its text value from within the javascript funtion. And to find the length of the text(string). Because I want to put my own validation control for some reason. Aleem.

    S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

    _ K 2 Replies Last reply
    0
    • I indian143

      Can you please help me in javascript to access, a .net server side control in javascript function and to read its text value from within the javascript funtion. And to find the length of the text(string). Because I want to put my own validation control for some reason. Aleem.

      S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

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

      No need to repost...

      Best Regards, Apurva Kaushal

      I 1 Reply Last reply
      0
      • I indian143

        Can you please help me in javascript to access, a .net server side control in javascript function and to read its text value from within the javascript funtion. And to find the length of the text(string). Because I want to put my own validation control for some reason. Aleem.

        S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

        K Offline
        K Offline
        kvPriya
        wrote on last edited by
        #3

        You cab try this... var text1=document.getElementById("<%=textboxname.ClientID %>"); to access server side control. And text1.value.length to get the length of its content. -Vishnu Priya

        I 2 Replies Last reply
        0
        • K kvPriya

          You cab try this... var text1=document.getElementById("<%=textboxname.ClientID %>"); to access server side control. And text1.value.length to get the length of its content. -Vishnu Priya

          I Offline
          I Offline
          indian143
          wrote on last edited by
          #4

          Thank you very much, thanks a lot. I think you are a Andhra. Right?. Thanks a lot. This is Abdul Aleem from Hyderabad.

          S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

          1 Reply Last reply
          0
          • _ _AK_

            No need to repost...

            Best Regards, Apurva Kaushal

            I Offline
            I Offline
            indian143
            wrote on last edited by
            #5

            How can I add elements in to a .Net Drop down list server control using Javascript function. Like I have 3 dropdown list server controls. I want change the date field whenever month or year changed. If possible please give some code snippet.

            S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

            1 Reply Last reply
            0
            • K kvPriya

              You cab try this... var text1=document.getElementById("<%=textboxname.ClientID %>"); to access server side control. And text1.value.length to get the length of its content. -Vishnu Priya

              I Offline
              I Offline
              indian143
              wrote on last edited by
              #6

              How can I add elements in to a Drop down list server control using Javascript function. Like I have 3 dropdown list server controls. I want change the date field whenever month or year changed. If possible please give some code snippet.

              S/W Engineer Akebono Soft Technologies aleem_abdul@akebonosoft.com.

              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