Ok guys, this one's a toughie and I'm under a deadline!
Ok, I have a few STATIC listboxes in a webform, standard, run of the mill, pick a state, listboxes. Set up like this:
<select name="selState"
<option value="1">AK</option>
<option value="2">AL</option>......and so on
What I need to do is add this tag:
<%Call RequestInfo("selState","")%> where, in the second set of "" I need to read and send the selected option to the next method. In a separate file named "scripts.asp" there is a case method that checks the first three letters of the name to see what kind of form item it is. I then needs to write the item name and the value to a URL. Sooooo, I need to get the value some how.
This is where I'm stumped.
Here is what the scripts.asp method looks like:
<%
sub RequestInfo(objName, btnVal)
Select Case left(objName,3)
Case "rad", "chk"
if Request(objName)=btnVal then
Response.Write("checked")
end if
Case "sel"
Response.Write ("Value='" & Request(objName) & "'")
Case "txt"
Response.Write ("Value='" & Request(objName) & "'")
Case "txa"
Response.Write("Value='" & Request.Form(objName)& "'")
End Select
end sub
%>
Sooooo, somehow, I need that "'" in the "sel" case to return the selected value that needs to be read in from the form.
Any ideas??????????
PS. the text area "txa" doesn't work either so any help on that would be nice too
Crystal Owings
[email protected]