Results 1 to 4 of 4

Thread: Value of textbox1 to automatically display in Textbox3?

  1. #1
    Join Date
    Jan 2009
    Posts
    22

    Value of textbox1 to automatically display in Textbox3?

    Hi,

    I have a form in ASP.Net & I want to know how to code this?

    I want the user to fill in Textbox1(Username) & when he goes to textbox2(Password) at this time I want the values from textbox1 copied to Textbox3(Username2) This I want to happen as soon as the user finishes with Textbox1(Username).

    I don't understand how is this possible.

    Please help!

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: Value of textbox1 to automatically display in Textbox3?

    This is a javascript issue (or at least i can only offer a javascript solution)...

    <input type="text" name="username" value="" onblur="this.form.Username2.value=this.value;"/>

  3. #3
    Join Date
    May 2008
    Posts
    63

    Re: Value of textbox1 to automatically display in Textbox3?

    Hi

    Here is solution

    Goto TextChanged Event for Username2 Text Box and write below

    Username.text=Username2.text

  4. #4
    Join Date
    May 2008
    Posts
    72

    Re: Value of textbox1 to automatically display in Textbox3?

    I dont think it is the proper way to do it. You need to call the function on 'OnBlur' event of textbox2.(incase of coping the textbox2 data in textbox1).

    syntax should be like this:

    <script type="text/javascript">

    function FnCopyTextBox()
    {
    document.getElementById("TextBox1").value = document.getElementById("TextBox2").value ;

    }

    </script>

Similar Threads

  1. Replies: 4
    Last Post: 23-12-2011, 10:26 AM
  2. HP probook 4530s display automatically dims or bright
    By Aadhar2011 in forum Portable Devices
    Replies: 10
    Last Post: 20-11-2011, 11:43 AM
  3. Replies: 4
    Last Post: 16-12-2010, 10:15 PM
  4. How to display a slideshow automatically?
    By One4u in forum Windows Software
    Replies: 5
    Last Post: 24-02-2010, 10:47 PM
  5. Replies: 2
    Last Post: 19-03-2009, 11:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,455,141.17367 seconds with 16 queries