From the code behind:
Assuming you have jquery on your page already.
StringBuilder strScriptFeatured = new StringBuilder(); strScriptFeatured.Append("$(document).ready(function(){"); strScriptFeatured.Append("alert('Your alert here!');"); strScriptFeatured.Append("});"); Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", strScriptFeatured.ToString(), true);
QED
Comments