Tornado Demo - Select Box Holding a column

Tornado Demo - Select Box Holding a column
Tornado Demo - Select Box Holding a column

Get Key From a SelectBox
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
  Dim GD As New tornado.getdata()
  Dim E15 As New tornado.z()
'...Form Name = selectboxform_Unit
  With E15
    .dbQP = "U=15|S=Space|D=Nwind.mdb|sb=f|ps=-1"
    .dbMode = "type=SBox|SboxMacro=#0# - #1#"
    .dbSQL = "SELECT * FROM Customers"
    .dbTextHolder = "Title=Tornado Demo - Select Box Holding a column"
    .ASPdbNET()
    Response.Write(GD.Get_Sbox(15))
    If .ASPdbPostBack Then
      Response.Write("Selected Value = " & Request.Form("selectboxform_15"))
    End If
  End With
End Sub
</script>

It is a very common process to obtain a key from a data soruce and then use the key to feed another application. The SelecBox enables you to do that.

Send comments on this topic.
Copyright (c) 1998-2006 ASP-db