Page class SP 2010 Sandbox Solution

We were trying some simple code in SharePoint 2010 and with a Sandboxed solution, the same code worked fine with Farm solution but didnt work with Sandbox solution. After doing some debugging we found that from the following code the following lines never worked:            Page.ClientScript.RegisterStartupScript(GetType(), “MyuniqueGUID”, xml, true);  ScriptManager.RegisterStartupScript(this, GetType(), Guid.NewGuid().ToString()  , “alert(‘hello baby’);”, true); …

3