Skip to content

Instantly share code, notes, and snippets.

@marlonwanger
Created March 31, 2021 23:42
Show Gist options
  • Save marlonwanger/3f280ba6766ab89ff47bc19faccc95dc to your computer and use it in GitHub Desktop.
Save marlonwanger/3f280ba6766ab89ff47bc19faccc95dc to your computer and use it in GitHub Desktop.
OnloadCompleted
var putFull = (PageState == FormStateEnum.Navigation);
if (!this.IsPostBack)
{
ClientScript.RegisterStartupScript(this.GetType(), "AdjustFileUploader", string.Format("<script>setTimeout(\"AdjustFileUploader('{0}');\", 100);</script>", putFull.ToString()));
}
else
{
AjaxPanel.ResponseScripts.Add(string.Format("setTimeout(\"AdjustFileUploader('{0}');\", 100);", putFull.ToString()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment