Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Value of textbox1 to automatically display in Textbox3?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-02-2009
Member
 
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!

Reply With Quote
  #2  
Old 16-02-2009
Member
 
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;"/>
Reply With Quote
  #3  
Old 16-02-2009
Member
 
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
Reply With Quote
  #4  
Old 16-02-2009
Member
 
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>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Value of textbox1 to automatically display in Textbox3?"
Thread Thread Starter Forum Replies Last Post
Ethernet port of the Thunderbolt Display is losing connection automatically Talisha Monitor & Video Cards 4 23-12-2011 10:26 AM
HP probook 4530s display automatically dims or bright Aadhar2011 Portable Devices 10 20-11-2011 11:43 AM
Windows 7 automatically faints Toshiba Satellite L655 display Hadassah Portable Devices 4 16-12-2010 10:15 PM
How to display a slideshow automatically? One4u Windows Software 5 24-02-2010 10:47 PM
Automatically display negative numbers in red in Excel 2007 SpearMan Tips & Tweaks 2 19-03-2009 11:10 PM


All times are GMT +5.5. The time now is 12:43 AM.