I use following code to render UserControl.
//render control to string
StringBuilder b = new StringBuilder();
HtmlTextWriter h = new HtmlTextWriter(new StringWriter(b));
this.LoadControl("~/path_to_control.ascx").RenderControl(h);
string controlAsString = b.ToString();
But I want to pass to UserControl some parameters so it should get data and update its properties just before rendering.
How it could be done? Thank you!