| Author: greeny_1984 24 Nov 2008 | Member Level: Diamond | Rating:  Points: 0 |
did u select any value in checkbox
Regards, Greeny_1984
Rate this Response[Excellent/Good/Poor] FRESHERS check this link Need help from me join here
|
| Author: Syed Shakeer Hussain 24 Nov 2008 | Member Level: Diamond | Rating:  Points: 2 |
hi...
use this code
if(checkbox1.checked) { strig str="YES" } else { string str2="No" }
Thanks & Regards! Syed Shakeer Hussain
|
| Author: vipul 24 Nov 2008 | Member Level: Diamond | Rating:  Points: 6 |
Hi, string strItem = ""; int i = 0; foreach (ListItem lstItem in chklistInterests.Items) { if (lstItem.Selected) { if (i == 0) strItem += lstItem.Text.ToString(); else strItem += " , " + lstItem.Text.ToString();
i++; } } used this code or see you select any item or not or if you bind this list box at page load event so you put into the if(!ispostbak) { //Bind list box }
vipul,
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|