I'm back :) Listbox var from listbox
Hi people, (Yes you to Peter :-)
I have a listbox (named lbxMyGroup). I want to insert both values from this (value and text) into a SQL Table. But I get a NULL.refrence error when I try the code below. I guess it's not getting the values from lbxMyGroup.SelectedItem.Text and lbxMyGroup.SelectedValue correctly. Anybody got a clue for me?
*********************CODE***************
'Add Groups to GroupMembers Table.
Dim li As ListItem
For Each li In lbxMyGroup.Items
Response.Write("selItem.Text" & lbxMyGroup.SelectedItem.Text & "<br>")
Response.Write("selValue" & lbxMyGroup.SelectedValue & "<br>")
SQL.Execute("Insert into GroupMembers.....
Next
As alway.. a big thanks for any help.
All help is Good help!
Regards
Michael
__________________
------------------------
All help is Good help!
Regards
Michael
|