Hello,
i have a problem when creating a rad slider at run time,in my web application i want to add the slider to specific placeholder when the user clicks on a link button
the problem is the slider is only added once, when i try to add the slider again
(as i want to add many sliders when i click on the button) there is an exception raised )
by the way when i use this method to add simple control like text box it is added ok
the add code is as follow
Thank you
Ibrahim Imam
i have a problem when creating a rad slider at run time,in my web application i want to add the slider to specific placeholder when the user clicks on a link button
the problem is the slider is only added once, when i try to add the slider again
(as i want to add many sliders when i click on the button) there is an exception raised )
by the way when i use this method to add simple control like text box it is added ok
the add code is as follow
protected void uxLbtnAddOption_Click(object sender, EventArgs e) |
{ |
aSliders.Add(new RadSlider()); |
Session["Sliders"] = aSliders;//aSlider is a static arraylist |
if (Session["Sliders"] != null) |
{ |
ArrayList aContainerSliders = (ArrayList)Session["Sliders"]; |
foreach (RadSlider slider in aContainerSliders) |
{ |
uxPholderSliders.Controls.Add(slider); |
} |
} |
} |
} |
Thank you
Ibrahim Imam