![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 3
Rep Power: 0
![]() |
Problem moving Label value to TextBox
Can someone help me on this, I'm new to C#.
I have a Label (LableName1)that receives a value, “Name” And I have a textbox (TextBox1) that I want the value of the label inserted in (“Name”) Can you please show me, below how I would do this, I get errors ever time i try "TextBox1.Text = Lablename1.Text;" protected void TextBox1(object sender, EventArgs e)
{
TextBox1.Text = Lablename1.Text;
}Thanks! |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
What are the errors you get?
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2005
Posts: 3
Rep Power: 0
![]() |
I have lost all that, I’m rebuilding it now. But it was something about textbox1 has already been referenced.
Thanks! |
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
protected void TextBox1(object sender, EventArgs e) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|