I am generating a html string exporting it to some source [PDF, e.t.c] via following function public static string ExecuteToString(string controlName) { Page page = new Page(); UserControl control = (UserControl)page.LoadControl(controlName); HtmlForm htmForm
= new HtmlForm(); htmForm.Controls.Add(control); page.Controls.Add(htmForm); StringBuilder sb = new StringBuilder(); using (StringWriter writer = new StringWriter(sb)) { HttpContext.Current.Server.Execute(page, writer, false); } return sb.ToString(); } Problem
is that it is not rendering any localized resource information.Please let me know what i am missing
kamii47
Star
9500 Points
2383 Posts
Localization from dynamic page and dynamic user control
Dec 06, 2012 09:23 AM|LINK
(MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])