Click here to Skip to main content
15,896,154 members

Comments by BHABANI PRASAD DASH (Top 5 by date)

BHABANI PRASAD DASH 6-Jan-16 7:52am View    
The problem is that ASP.NET does not get to know about this extra or removed listitem. You got an number of options (listed below):

Disable eventvalidation (bad idea, because you lose a little of security that come with very little cost).
Use ASP.NET Ajax UpdatePanel. (Put the listbox in the Updatepanel and trigger a update, if you add or remove listbox. This way viewstate and related fields get updates and eventvalidation will pass.)
Forget client-side and use the classic postback and add or remove the listitems server-side.
I hope this helps.
BHABANI PRASAD DASH 6-Jan-16 7:46am View    
Set AutoScroll = True In Form Properties
BHABANI PRASAD DASH 14-Jun-13 8:13am View    
No am not getting any error
BHABANI PRASAD DASH 6-Jun-13 7:13am View    
i dont have validation summary
BHABANI PRASAD DASH 6-Jun-13 3:45am View    
display none property i think doesnt display eroor.actually ur code is not working properly