Author: ghosthuntert | Posted on: 2/14/2009 10:54:19 AM | Views : 413

Ok i have a drop down lists and i add values at run time like so
 
1 string dir = Server.MapPath("/") + "Resources/gnames.txt";
2 StreamReader sr = new StreamReader(dir);
3 do
4 {
5 string temp = sr.ReadLine();
6 DropDownList11.Items.Add(temp);
7 DropDownList12.Items.Add(temp);
8 DropDownList13.Items.Add(temp);
9 DropDownList14.Items.Add(temp);
10 DropDownList15.Items.Add(temp);
11 DropDownList16.Items.Add(temp);
12 ...

Go to the complete details ...