views:

385

answers:

0

I require some expert help here!
I have a string which contains some dynamic javascript (the javascript is generated based on database/run time paramenters). So to add this javascript during a partial postback i am use RegisterStartupScript (which works fine). However i wanted to add the dynamic javascript as a scriptresource.axd and link it to the page. The scriptresource will be faster as it supports compression and is better for debugging.
So there are two problems which i need help on:
1. Host a string javascript text as a scriptresource
2. Linking the scriptresource to the page (should be easier if 1 can be done)