Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Calling the Value of a Select ListBox in a table

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,254
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Calling the Value of a Select ListBox in a table
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Calling the Value of a Select ListBox in a table - 7/8/2001 8:48:14 AM   
  peach24

 

Posts: 7
Score: 0
Joined: 6/9/2001
From: USA
Status: offline
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
 
 
Post #: 1
 
 Re: Calling the Value of a Select ListBox in a table - 7/8/2001 8:50:21 AM   
  itan

 

Posts: 10
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
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>

(in reply to peach24)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Calling the Value of a Select ListBox in a table Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts