locked
Register Client Script Resource RRS feed

  • Question

  • User1355486997 posted

    hi all,

    I need to pass server side strings to javascript on the client.

    The javascript is add to the client using the ScriptManager.RegisterClientScriptResource mathod.

    I tryed passing the strings using the Page.ClientScript RegisterStartupScript mathod and it cant find the strings that way.

    any ideas ?

    yotam.

    Monday, April 21, 2008 4:35 AM

Answers

  • User2008424322 posted

    Hi,
    If you are using ajax then use ScriptManager.RegisterStartupScript Method.
    If you are not using ajax then use Page.RegisterStartupScript Method.

    It will be difficult to solve based on the explaination only.
    Please post your code of registering the script and your java script function. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 22, 2008 2:22 AM