Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Javascript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Dale, post: 4293496"] Move your code out of the control's OnPreRender and into the Page_Load event handler. But in this case, why not just hardcode the script block HTML into the ASPX page? You're using server resources here to generate something that is always the same and always known ahead of time. The server processing isn't adding anything at all to the final outcome. Dale still can't see the Javascript appearing. This is what I am doing:- but would like to do this the right way. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Javascript
Top