hi
I have a web page.In this page i have a listBox and a butto i want to when i clicked on the ListBox my button is hide.
then i write bellow code
ListBox_SelectedIndexChanged(object sender, EventArgs e)
{button1.visible=false;}
when i trace this code false visibilty assign to button1 rightly.
please say me what's mistake and how can i correct this.tnx a lot
Button.visible
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dorababu MekaRank #457 · 5.5K reputationPosted Sep 3, 2010, 9:19 PM EDT
bahare g68 reputationPosted Sep 3, 2010, 10:10 PM EDT
if any item in listBox has informtion button1 must be button1.visible=true else button1.visible=false
i can show or hide any items in page in code-behind but all buttons in my page can't hide or show in code-behind.I trace my codes and All of them don't have error but visiblty can't work true.
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 3, 2010, 10:13 PM EDT