Author: Skag55 | Posted on: 1/19/2009 9:16:58 AM | Views : 308

Hi,

I need to have in my application a DropDownList which will hold several elements, and when the user selects it, modofy the text in a label so that the user knows the selection, and then pass the selected value as a database query in SQL. I have been trying this for a while and here's where I have ended up to. Any suggestions please?

 1 <script runat="server" language="C#">
2 //string a;
3
4 protected void Page_Load(object sender, EventArgs e)
5 {
6 // Read the employees list when initially loading the page
7 if(!IsPostBack)
8
9 LoadEmployeesList();
10 }
11
12 ...

Go to the complete details ...