I the following script. How do i include it at the bottom of my page using code -behind in aspx.
private string loadDropboxScript()
string key = ApiKeySettings.DropboxAppKey;
StringBuilder sb = new StringBuilder();
I tried to used ScriptManager.RegisterStar
ScriptManager.RegisterStartupScript(this, this.GetType(), "dropboxdriveScript", loadDropboxScript(), true);
However, it adds the script but it place it within another script type.. Is that valid?
Here is what I tying to accomplish. I want to add dropbox.js to my page and a dropbox picker. However, this service is block in some network.So, my page load for a while if Drop Box is not allow. I would like to only incur this penalty when the button is press or have include everything has been loaded