Last post Jan 06, 2011 02:45 AM by SuryaG
Jan 04, 2011 06:33 AM|SuryaG|LINK
Am building a custom controls that requires a jQuery plugin. It's related JS file is supposed to be registered just before </body> tag. I have this JS file as an embedded resource. So i tried RegisterClientScriptResource method of ClientScriptManager but
there is no way of specifying where to register the script. Is there anyway i can achieve it
Jan 04, 2011 09:11 AM|Sand1980|LINK
To register a script above the closing body tag you need to use "Page.ClientScript.RegisterStartupScript" method. Or you can place the script tag just above the body tag of your aspx page inside a script block.
Jan 06, 2011 02:45 AM|SuryaG|LINK
Page.ClientScript.RegisterStartupScript did the trick. Thanks Sandeep