M
mlarson
Hello,
I'm working on a page that dynamically creates listboxes and the
"options" that are added to the listbox. A user can then click on
buttons to either add or delete the "options" from one listbox to the
other. All of this works fine, but when the user changes from one
page to the next, I'm trying to save all user input before it
redirects to the next page. For some reason, I can't see what values
have been selected in one of the listboxes. Obviously I only care
about one of the listboxes which represents selected values. I've
tried using Request.Form[], and Request.Form.GetValues(), but both
give me a null value.
My call looks something like this. When I create the control
dynamically, I give it a dynamic name of "ListBox55S". Then when I
try to access the values,
string name = ListBox55S;
Request.Form[name];
-or-
Request.Form.GetValues(name);
neither works.....
Any ideas would be helpful.
BTW, this is a web application in Visual Studio.Net, and I'm using C#
as my selected code-behind language.
Thanks
I'm working on a page that dynamically creates listboxes and the
"options" that are added to the listbox. A user can then click on
buttons to either add or delete the "options" from one listbox to the
other. All of this works fine, but when the user changes from one
page to the next, I'm trying to save all user input before it
redirects to the next page. For some reason, I can't see what values
have been selected in one of the listboxes. Obviously I only care
about one of the listboxes which represents selected values. I've
tried using Request.Form[], and Request.Form.GetValues(), but both
give me a null value.
My call looks something like this. When I create the control
dynamically, I give it a dynamic name of "ListBox55S". Then when I
try to access the values,
string name = ListBox55S;
Request.Form[name];
-or-
Request.Form.GetValues(name);
neither works.....
Any ideas would be helpful.
BTW, this is a web application in Visual Studio.Net, and I'm using C#
as my selected code-behind language.
Thanks