I've written a HttpModule for sharepoint and need to open a RadWindow. I've proven that the HttpModule injects controls to the page by simply adding a dynamic label.
Here's the code I'm trying to use on the PreInit event in the HttpModule:
A label control works fine but I can't get the RadWindow to appear. I've debugged it and saw no exceptions and no errors are generated.
Any ideas?
cheers,
Steve
Here's the code I'm trying to use on the PreInit event in the HttpModule:
private void Page_PreInit(object sender, EventArgs e) |
{ |
Page page = HttpContext.Current.CurrentHandler as Page; |
HttpContext oContext = HttpContext.Current; |
SPContext oSPContext = SPContext.GetContext(oContext); |
SPWeb oWeb = oSPContext.Web; |
int intMill = DateTime.Now.Millisecond; |
RadWindow RadWindow1 = new RadWindow(); |
RadWindow1.Skin = "Default"; |
RadWindow1.ID = "test" + intMill.ToString(); |
page.Master.Controls.Add(RadWindow1); |
} |
A label control works fine but I can't get the RadWindow to appear. I've debugged it and saw no exceptions and no errors are generated.
Any ideas?
cheers,
Steve