Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in FollowUps, URL parameter ?view=5 is the only one that changes the view #1

Open
knolly42 opened this issue Feb 16, 2018 · 0 comments

Comments

@knolly42
Copy link

knolly42 commented Feb 16, 2018

In FollowUps.ascx.cs

Can be fixed by changing line 121 from

ddlChoices.SetValue( ViewOptionText[option] );

to

ddlChoices.SelectedIndex = Convert.ToInt32(option);

ViewOptionText comes from a dictionary used for the list view choice list labels, so all but one (the option that works) they have spaces in them.

Consequently, using that for the selected index of ddlChoices fails because 'option' is derived from the Querystring and takes its value from another list (internal enum ViewOption) that no spaces in the values.

@knolly42 knolly42 changed the title URL parameter 'view=5' is the only one that changes the view in FollowUps, URL parameter ?view=5 is the only one that changes the view Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant