Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to register ClientScript at the very bottom of the page [duplicate]

I'm using Page.ClientScript.RegisterClientScriptBlock to generate script tag on page. But This will place my script at the top of the page.  I want this execute after everything else on the page as the very last line in the html. How do I do this?

like image 369
Rokni Avatar asked Jan 26 '26 00:01

Rokni


1 Answers

I think you can use this Page.ClientScript.RegisterStartupScript instead.

like image 71
daryosh setorg Avatar answered Jan 27 '26 16:01

daryosh setorg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!