.net - clientscript.registerclientscriptblock or include not adding to the page head? -
I'm using clientscript.registerclientscriptblock (with typeof (page), this, that) tied in my scripts. Meaning Jquery and Valid etc ..
And I have some hands-on scripts (where the script should be .. OK?) Bits and Bobs ..
But it seems That the scripts in the head are not kept in the form of a register client (goodness knows why) that I have put the script in my hand!
Certainly there is a kind of structure in .NET head ..?! No?!? Or I'm going to either dump all my hand coded stuff down all my pages (just all seems wrong) or .. Is there any other answer?
thanks
I can not really understand why register / block / why do not include things at the top of the page ... why why - Okay I'm sure that's a fair answer, but that too?
If you are using master pages, then the work is as simple ... < / P>
& Lt; Script type = "text / javascript" src = "/ scripts / common1.js" & gt; & Lt; / Script & gt; & Lt; ASP: Content Placeholder ID = "Extra Style Endquate" Runat = "Server" /> & Lt; / Head & gt; & Lt ;! - on child pages - & gt; & Lt; ASP: Content content placeholder = "Extra Style Endcurence" Runat = "Server" & gt; & Lt; Link type = "text / css" rel = "stylesheet" href = "/ styles / extra1.css" /> & Lt; Script type = "text / javascript" src = "/ scripts / extra1.js" & gt; & Lt; / Script & gt; & Lt; / ASP: Content & gt;
Here's a link about
Comments
Post a Comment