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. Unable to get text from textbox

Unable to get text from textbox

Scheduled Pinned Locked Moved ASP.NET
javascripthelptutorial
6 Posts 3 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.
  • D Offline
    D Offline
    Deepak Nigam
    wrote on last edited by
    #1

    Hello friends, I am facing a very diffrent typr of problem. In my applicetion there is a loginid when i put somthing in it emailid is autogenerated through javascript and put this to the emailid textbox. I am also having two dropdownlist ddlCountry and ddlState. the page postbacks when we select a country and ddlState is filled.During this time txtEmailid becomes blank. now if i again generate an onblur event on the loginid emailid is filled but when i click save button it again lost. No value can be retrieve from the txtEmailid. How to solve this problem........

    Deepak Nigam

    E D 2 Replies Last reply
    0
    • D Deepak Nigam

      Hello friends, I am facing a very diffrent typr of problem. In my applicetion there is a loginid when i put somthing in it emailid is autogenerated through javascript and put this to the emailid textbox. I am also having two dropdownlist ddlCountry and ddlState. the page postbacks when we select a country and ddlState is filled.During this time txtEmailid becomes blank. now if i again generate an onblur event on the loginid emailid is filled but when i click save button it again lost. No value can be retrieve from the txtEmailid. How to solve this problem........

      Deepak Nigam

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

      when the e-mail id is autogenerated store it in a session at that point, dont take the value from the textbox at the end

      D 1 Reply Last reply
      0
      • E eyeseetee

        when the e-mail id is autogenerated store it in a session at that point, dont take the value from the textbox at the end

        D Offline
        D Offline
        Deepak Nigam
        wrote on last edited by
        #3

        I have to show this in the textbox. Same problem is with date it also disappears on button click.

        Deepak Nigam

        E D 2 Replies Last reply
        0
        • D Deepak Nigam

          I have to show this in the textbox. Same problem is with date it also disappears on button click.

          Deepak Nigam

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

          Because javascript is run at client side and your other controls post back it means that when the page is refreshed then the javascript has to be run again, you may need to think about the order in which these things happen

          1 Reply Last reply
          0
          • D Deepak Nigam

            Hello friends, I am facing a very diffrent typr of problem. In my applicetion there is a loginid when i put somthing in it emailid is autogenerated through javascript and put this to the emailid textbox. I am also having two dropdownlist ddlCountry and ddlState. the page postbacks when we select a country and ddlState is filled.During this time txtEmailid becomes blank. now if i again generate an onblur event on the loginid emailid is filled but when i click save button it again lost. No value can be retrieve from the txtEmailid. How to solve this problem........

            Deepak Nigam

            D Offline
            D Offline
            Darsh_3
            wrote on last edited by
            #5

            put the dropdown control in UpdatePanel of Ajax so it will not refresh u r page.But dont keep any button inside UpdatePanel it will not work

            1 Reply Last reply
            0
            • D Deepak Nigam

              I have to show this in the textbox. Same problem is with date it also disappears on button click.

              Deepak Nigam

              D Offline
              D Offline
              Darsh_3
              wrote on last edited by
              #6

              put your date textbox in UpdatePanel(Ajax Control) and button outside the UpdatePanel bcoz it will not work inside UpdatePanel. UpdatePanel will stop refreshing u r page.

              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