conjurer111
Programmer
Hi,
I have an ASP page with the following controls -
1. select box
2. button(execute)
3. textboxes
4. button(update)
when the page is loaded, I populate the select item with values from the database. Now what I need is that when I click on the execute button, a SQL query (select * from emp where empid = selectbox.value ) should fire taking input from the select boxes selected item value and populate the text boxes with the results of the query. Next I will make changes if any to the values in the textboxes and click on the update button so that the resulting values in the textboxes will be updated in the database. How do I code this.
Thanks.
I have an ASP page with the following controls -
1. select box
2. button(execute)
3. textboxes
4. button(update)
when the page is loaded, I populate the select item with values from the database. Now what I need is that when I click on the execute button, a SQL query (select * from emp where empid = selectbox.value ) should fire taking input from the select boxes selected item value and populate the text boxes with the results of the query. Next I will make changes if any to the values in the textboxes and click on the update button so that the resulting values in the textboxes will be updated in the database. How do I code this.
Thanks.