user control help

G

Guest

hey all,
i have a user control that has some javascript defined in the HEAD section.
well i'd like to drag my user control onto a page that is using a Master
Page. so, now, where do i put that javascript code?

thanks,
rodchar
 
K

Kevin Spencer

A UserControl should not have a HEAD section. An HTML document can only have
one HEAD section, and a UserControl is a Control inside the document.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.
 
K

Kevin Spencer

BTW, forgot to mention: JavaScript can be anywhere in an HTML document. Not
necessarily in the head.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top