|
| Button changes picture |
 |
Thu, 6 Mar 2008 23:37:18 +0000 |
Hi
I need help with changing the picture. So for instance when a specific button
is clicked it makes a picture coming up depending what value a label has. So i
need to link the text in a label to a picture. I would appreciate any help,
Many Thanks
|
| Post Reply
|
| Re: Button changes picture |
 |
Thu, 6 Mar 2008 23:59:01 +0000 |
at codebehind, you can sasy to do it.
protected void Button1_Click(object sender, EventArgs e)
{
string s = label1.text;
//change your picture here
}
If you can't solve it, please give us more information about how the picture you
want to change etc
|
| Post Reply
|
| Re: Button changes picture |
 |
Fri, 7 Mar 2008 00:11:11 +0000 |
When you say change your picture here, thats the part im confused about. What
code do I need to enter that will change the picture. So if I have a load of
pictures for footballers and if for instance the text in the label says Beckham,
then the picture for beckham comes up. If it says zidane then picture for zidane
comes up nd so on. Thanks for the help
|
| Post Reply
|
|
|
|
|
|
|
|
|
|