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. How to fire event in client side?

How to fire event in client side?

Scheduled Pinned Locked Moved ASP.NET
questionsysadmintutorial
6 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.
  • L Offline
    L Offline
    largs
    wrote on last edited by
    #1

    Hello everyone I have a simple web form with a textarea and a label.I'd like that when i type or delete a character in textarea the label will display the current number of characters in textarea.I've used Textbox server control (multiple line).I used the TextChanged event of the textbox but it just fired when i leave the textbox(i think it submits to the server at that time) not while i'm typing.How can i fire this event in client (means that it fire whenever there is a change in textarea)?Thanks for reading

    R 1 Reply Last reply
    0
    • L largs

      Hello everyone I have a simple web form with a textarea and a label.I'd like that when i type or delete a character in textarea the label will display the current number of characters in textarea.I've used Textbox server control (multiple line).I used the TextChanged event of the textbox but it just fired when i leave the textbox(i think it submits to the server at that time) not while i'm typing.How can i fire this event in client (means that it fire whenever there is a change in textarea)?Thanks for reading

      R Offline
      R Offline
      ricardojb
      wrote on last edited by
      #2

      you need to use client side scripts for that, such as javascript or vbscript (only in IE).

      L M 2 Replies Last reply
      0
      • R ricardojb

        you need to use client side scripts for that, such as javascript or vbscript (only in IE).

        L Offline
        L Offline
        largs
        wrote on last edited by
        #3

        I wrote a function (print a welcome message) for onchange event of textarea but it just fire when i left the textarea not while i'm typing and it forward to another screen in which just have welcome message.How to resolve this problem?Thnx for reading

        S 1 Reply Last reply
        0
        • L largs

          I wrote a function (print a welcome message) for onchange event of textarea but it just fire when i left the textarea not while i'm typing and it forward to another screen in which just have welcome message.How to resolve this problem?Thnx for reading

          S Offline
          S Offline
          sudharsong
          wrote on last edited by
          #4

          u have to use ajax for this kind of issue with regards, susa

          M 1 Reply Last reply
          0
          • S sudharsong

            u have to use ajax for this kind of issue with regards, susa

            M Offline
            M Offline
            Mohammed Amine
            wrote on last edited by
            #5

            hey , sorry man but i wanna ask you , what is this ajax & how can i use it please ? thank you i'm a beginner & i need some help :) try to be good if you can't be the best

            1 Reply Last reply
            0
            • R ricardojb

              you need to use client side scripts for that, such as javascript or vbscript (only in IE).

              M Offline
              M Offline
              Mohammed Amine
              wrote on last edited by
              #6

              Hey, sorry man but can you tell me how to use that script ? i didn't understand i'm just a beginner can you explain more ?? thank you for your help try to be good if you can't be the best

              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