Hello,
I have a problem in changing the RotatorScrollDirection using c# code
Here is the code, I'm using:
switch (scrollDirection)
{
case "Down": rotator1.ScrollDirection = RotatorScrollDirection.Down; break;
case "Left": rotator1.ScrollDirection = RotatorScrollDirection.Left; break;
case "Right": rotator1.ScrollDirection = RotatorScrollDirection.Right; break;
case "Up": rotator1.ScrollDirection = RotatorScrollDirection.Up; break;
}
Is there any way to convert the string to object in order to prevent using the "switch" or "if" statements? for example, convert the string "Right" to the object "RotatorScrollDirection.Right"
Please, I need your help,
It is appreciated to send me the modified code.
Regards,
Bader