Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 29th, 2005, 3:59 PM   #1
Bman
Newbie
 
Bman's Avatar
 
Join Date: Nov 2005
Posts: 3
Rep Power: 0 Bman is on a distinguished road
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!
Bman is offline   Reply With Quote
Old Nov 29th, 2005, 4:24 PM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
What are the errors you get?
ivan is offline   Reply With Quote
Old Nov 29th, 2005, 6:39 PM   #3
Bman
Newbie
 
Bman's Avatar
 
Join Date: Nov 2005
Posts: 3
Rep Power: 0 Bman is on a distinguished road
I have lost all that, I’m rebuilding it now. But it was something about textbox1 has already been referenced.

Thanks!
Bman is offline   Reply With Quote
Old Nov 29th, 2005, 7:28 PM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
protected void TextBox1(object sender, EventArgs e)
TextBox1 isn't a function - it's an object. Glad you got it sorted, anyway.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC