| Author: vipul 17 Jul 2008 | Member Level: Diamond | Rating: Points: 5 |
hi, do this way int[] j ={ 1, 2 }; for (int i = 0; i < j.Length; i++) { switch (j.GetValue(0).ToString()) { case "1": Session["drop"] = "1"; break; case "2": Session["text"] = "1"; break; default: Session["text"] = ""; Session["drop"] = ""; break; } }
vipul, http://dongavipul.blogspot.com
Patel Vipul Web Developer Ahmedabad ( Gujarat )
|