Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Where to put page specific script in a page that inherits from a master page?

Thread Tools

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

Posts: n/a
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:
-Derived1.aspx (with ScriptA)
-Derived2.aspx (with ScriptB)
-Derived3.aspx (with ScriptC)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the value of a Master page's control's property using a property of the Master page Nathan Sokalski ASP .Net 25 03-04-2010 03:42 AM
difference Inherits CompositeControl vs Inherits WebControl ton ASP .Net Building Controls 1 06-24-2007 07:49 AM
Can a master page be built from another master page Zeba ASP .Net 1 02-22-2007 10:55 AM
Inherits from Control, Yay, Inherits from WebControl, Nay.... Alex Nitulescu ASP .Net 0 02-22-2005 05:55 AM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM