I am trying to render an HTML page into a local variable (basically just creating a new System.Web.UI.Page object) (See http://aspnet.4guysfromrolla.com/articles/122006-1.aspx), and then adding the Grid control to this page. When I call the System.Web.UI.Page.RenderControl, it throws an exception 'Request is not available in this context', only when the Grid control is inserted into the page.
I guess the grid control is expecting the Request object to be valid (which technically it is not in this case). Other controls work fine ... just not the Grid control. Is there any reason the grid control would not supported being rendered like this?
Thanks,
Jay
I guess the grid control is expecting the Request object to be valid (which technically it is not in this case). Other controls work fine ... just not the Grid control. Is there any reason the grid control would not supported being rendered like this?
Thanks,
Jay