Hi, guys!
Does anyone knows the resolution of a problem when i need to insert <link> or <script> tag into HEAD section dynamically?
I was trying few ways to do this: 1) RegisterClientS criptBlock inserts script right after form.
2) RegisterStartup Script inserts script before post form.
3) Page.Controls.A dd(new LiteralControl( "<LINK rel='stylesheet ' href='include/inputbox.css' type='text/css'>")); (or AddAt method) Works, but inserts only the last one tag to the end of a page.
P.S. I need to INSERT new LINK or SCRIPT tag but to change the href or src attribute of an existing tag.
--
Sergey Morkovkin, Web Project Leader
Celline Ltd. - World of content in real time
+380 44 234 65 36
+380 67 280 11 22
Does anyone knows the resolution of a problem when i need to insert <link> or <script> tag into HEAD section dynamically?
I was trying few ways to do this: 1) RegisterClientS criptBlock inserts script right after form.
2) RegisterStartup Script inserts script before post form.
3) Page.Controls.A dd(new LiteralControl( "<LINK rel='stylesheet ' href='include/inputbox.css' type='text/css'>")); (or AddAt method) Works, but inserts only the last one tag to the end of a page.
P.S. I need to INSERT new LINK or SCRIPT tag but to change the href or src attribute of an existing tag.
--
Sergey Morkovkin, Web Project Leader
Celline Ltd. - World of content in real time
+380 44 234 65 36
+380 67 280 11 22
Comment