HI Folks,
I'm very new to asp, could someone please explain how I can use a drop down list instead of a text box in the code below?
Instead id entering a number in the text box I'd like the user to select a list item from a drop down list, that would then query the Db and display the results.
My table is this:
locationid - int
locationName - varchar
LocationAddress varchar
The code I have is below, it just uses a text box at the moment.
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub submitButton_Click(ByVal sender As Object, _
ByVal e As System.EventArgs)
Go to the complete details ...