Calling the Value of a Select ListBox in a table

Author Message
peach24

  • Total Posts : 7
  • Scores: 0
  • Reward points : 0
  • Joined: 6/9/2001
  • Location: USA
  • Status: offline
Calling the Value of a Select ListBox in a table Sunday, July 08, 2001 9:48 AM (permalink)
0
I have a table on an ASP page. when the user makes a selection I
need to pass that information into a variable. The problem is that I
can't referrence the select object.

So how do I refference a select list imbedded into a cell.

Select id=select1

sub select1_blur()
X = select1.Value
End sub

Any help would be greatly appreciated

 
#1
    itan

    • Total Posts : 10
    • Scores: 0
    • Reward points : 0
    • Joined: 5/31/2001
    • Location: USA
    • Status: offline
    Re: Calling the Value of a Select ListBox in a table Sunday, July 08, 2001 9:50 AM (permalink)
    0


    it is a little unclear what you have exactly on the ASP page. But is no
    problem to use a SELECT in a table:

    example.asp:

    dim cField1
    cField1 = Request.Form("field1")

    Response.Write "<form method=post action=example.asp>"&_
    "<table><tr><td><select name=field1>"
    Response.Write "<option "
    if cField1 = "Yes" then Response.Write " selected"
    Response.Write ">Yes<option"
    if cField1 = "No" then Response.Write " selected"
    Response.Write ">No</td></tr>"
    response.write "</table><input type=submit></form>

     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9