How to register js in <head>?

G

Guest

Hi there, when I use Page.ClientScript.Register...Block() , the script got
added within the <form> tag. It's not a big problem, but I still want to put
them in the <head> tag. See if you have any suggestion.

Thanks.
 
S

Swanand Mokashi

Are you trying to do this in a master page ?

If so check this out my article at :
http://www.dotnetgenerics.com/Modules/TricksAndTips/ASP.NET/PowerOfTilda.aspx.

It will answer your question though not directly, but you can use the same
concept.


--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET)

http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ...

http://www.swanandmokashi.com/
http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
 
G

Guest

I'm not using master page in my testing site, but the final production will
be using it. re: the header control, I like the idea, but may not use it
because of the features that ClientScriptManager object expose. So I guess I
will just leave with it.
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top