Where to put page specific script in a page that inherits from a master page?

Discussion in 'ASP .Net' started by Eric, Apr 25, 2006.

  1. Eric

    Eric Guest

    I have a master page, and want each derived page to have a separate script
    associated with it. However, I'm not sure where to put the <script> tag. I
    tried putting it into the Derived.aspx inside the <contentPlaceholder> tag
    but that did not work. The script did not get emitted to the browser.

    Since I want each page to have a different script, I cannot just put the
    page specific script into the master page but where DO I put it.

    Here's what I'd like:
    MasterPage.master
    |
    -Derived1.aspx (with ScriptA)
    -Derived2.aspx (with ScriptB)
    -Derived3.aspx (with ScriptC)
     
    Eric, Apr 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Nitulescu
    Replies:
    0
    Views:
    352
    Alex Nitulescu
    Feb 22, 2005
  2. Doug McCann
    Replies:
    1
    Views:
    1,037
    William Brogden
    Aug 5, 2004
  3. Zeba
    Replies:
    1
    Views:
    498
    Mark Rae
    Feb 22, 2007
  4. Nathan Sokalski
    Replies:
    25
    Views:
    1,442
    Nathan Sokalski
    Mar 4, 2010
  5. ton
    Replies:
    1
    Views:
    1,028
    Teemu Keiski
    Jun 24, 2007
Loading...

Share This Page