Hi @Cindy Mello ,
As far as I think, redirectit will not process JavaScript that is written out to the output stream other than JavaScript that is registered through the ClientManager on postback. This is more related with the way javascript works. the addition of script nodes can't simply be done by adding text to the inner HTML property of a div (this is what is done when the script nodes sent on the content panel element that is returned from the server). when you use register, the server side sends those elements on a different xml element and these kind of elements gets "special" treatment on the client side.
You could refer to below article:
https://www.aspsnippets.com/Articles/Display-Show-JavaScript-Alert-Message-Box-from-Resource-file-in-ASPNet.aspx
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.