Remove item from listbox causes "Dangerously potential..." Help pl

V

Vear

Hi,

I have a webform that has several control on it. Two of them are listboxes
where you can click on one, then push an Add button to the other. This works
fine, but if the user added something they don't want I have a Remove button.
The code looks like this

LstExtrasAdded.Items.Remove(LstExtrasAdded.SelectedItem)

When I launch that code I get "Potentially Dangerous request.form..." I know
I can turn off form validation in the header, but I don't want to turn this
off due to the other controls on the form. Is there a way around this or to
tell the app to ignore validation on the control. I have turned off cause
validation on the listbox and the button but I still receive the error.

Any help would be greatly appreciated. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top