AjaxControlToolkit icon indicating copy to clipboard operation
AjaxControlToolkit copied to clipboard

ComboBox: Text in ViewState not cleared on PostBack

Open kevinoid opened this issue 3 years ago • 0 comments

The AJAX Control Toolkit 20.1.0

The installation method

  • [ ] Installer
  • [x] NuGet package
  • [ ] A custom build from the source code

Minimal steps to reproduce the bug

On a page with a ComboBox, perform the following steps:

  1. Enter some text into the ComboBox.
  2. Press Submit.
  3. Remove the text from the ComboBox.
  4. Press Submit.

Actual result

The text entered in step 1 reappears in the ComboBox.

Expected result

The ComboBox would remain clear, as a TextBox does.

Browser(s) used

  • Edge 85.0.564.51
  • Firefox 80.0.1
  • Internet Explorer 11

A site deployment method

  • [x] VS development web-server,
  • [ ] IIS

Sample project: https://gist.github.com/kevinoid/c33524d38084b9720adc7a6549219041

Thanks, Kevin

kevinoid avatar Sep 15 '20 23:09 kevinoid