Hello,
You can pass parameters to user controls in various ways. You can use a thread parameter, session parameter or cookie parameter:
// Setting the values
// set request stock helper (thread value)
CMS.GlobalHelper.RequestStockHelper.Add("partnercount", DropDownList1.SelectedValue.ToString());
// Set cookie:
CMS.GlobalHelper.CookieHelper.SetValue("partnercount", DropDownList1.SelectedValue.ToString(), DateTime.Now.AddDays(1));
// set session variable
HttpContext.Current.Session["partnercount"] = DropDownList1.SelectedValue.ToString();
// Getting the vaues
// Get cookie value:
string partnerCountCookie = CMS.GlobalHelper.CookieHelper.GetValue("partnercount");
// Get session value
string partnerCountSession = HttpContext.Current.Session["partnercount"].ToString();
// Get thread value
string partnerCountThread = CMS.GlobalHelper.RequestStockHelper.GetItem("partnercount").ToString();
Best regards,
Boris Pocatko