without postback?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Salim Afþar

    #1

    without postback?

    Hi,
    I've got a textbox and a label.When the user enter a character to the
    textbox I'll display the number of character in the textbox in the label.
    How can I do that without any postback?
    Thanks in advance.
    Salim


  • Mark

    #2
    Re: without postback?

    I don't believe this is possible without doing a postback to the server.
    Using Javascript you may be able to capture the onKeyDown (Or similiar
    event) and the check the length of the string in the required textbox.

    If you need any more info, give me a yell :)

    Cheers
    MarkusJ


    Comment

    • Aemca

      #3
      Re: without postback?

      Goto a site which offers a web sms service and copy the javascript
      functionality from there.



      "Salim Afþar" <safsar@luckyey e.com> wrote in message
      news:O6gTnUETDH A.2020@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Hi,
      > I've got a textbox and a label.When the user enter a character to the
      > textbox I'll display the number of character in the textbox in the label.
      > How can I do that without any postback?
      > Thanks in advance.
      > Salim
      >[/color]


      Comment

      • Salim Afþar

        #4
        Re: without postback?

        Can you please send some JavaScript onKeyDown code
        Thanks

        "Mark" <mark@yahoo.com N0SPAM> wrote in message
        news:bf5s1l$drk $1@lust.ihug.co .nz...[color=blue]
        > I don't believe this is possible without doing a postback to the server.
        > Using Javascript you may be able to capture the onKeyDown (Or similiar
        > event) and the check the length of the string in the required textbox.
        >
        > If you need any more info, give me a yell :)
        >
        > Cheers
        > MarkusJ
        >
        >[/color]


        Comment

        • Salim Afþar

          #5
          Re: without postback?

          Thanks again.I made it.
          Salim
          "Salim Afþar" <safsar@luckyey e.com> wrote in message
          news:uQokwKFTDH A.304@tk2msftng p13.phx.gbl...[color=blue]
          > Can you please send some JavaScript onKeyDown code
          > Thanks
          >
          > "Mark" <mark@yahoo.com N0SPAM> wrote in message
          > news:bf5s1l$drk $1@lust.ihug.co .nz...[color=green]
          > > I don't believe this is possible without doing a postback to the server.
          > > Using Javascript you may be able to capture the onKeyDown (Or similiar
          > > event) and the check the length of the string in the required textbox.
          > >
          > > If you need any more info, give me a yell :)
          > >
          > > Cheers
          > > MarkusJ
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...