<p>A viscoelastic composition containing an effective amount of at least one cationic carbohydrate ether having one or more cationic fragments and one or more carbohydrate fragments connected through one or more linker fragments for controlling the viscoelasticity of the composition, wherein at least some carbohydrate fragments are connected to the linker fragments through ether bonds.</p>