I would like to know how I can randomize the order in which some controls are displayed.
Basically, I have 5 hyperlinks, and I want on each load the order in which they are displayed to be randomized.
Which way I can accomplish that?
Thanks, Laziale
I would like to know how I can randomize the order in which some
Share
Assuming all 5 links are in an asp panel named “pnlLinks”, and that the links are the only controls in the panel:
Use code like this to randomize their order: