//on a code behind event Page_load or Page_PreRender for instance
string script = @"
//javascript code
$(document).ready(function() {
alert('test');
});";
ScriptManager.RegisterStartupScript(this, GetType(), "A unique key For this script", script, true);
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.