W
_Who
I have a .htm file that shows in an iframe which is part of a master's
asp:Content.
I need the .htm to copy the style class from the master or set it as shown
below.
Below is how I set the stylesheet in the master.
What I'd like to do, is change that code into javascript and run it in the
htm file.
I can change the Select into if...else
But I don't know how to is extract from Session("StyleSheetIndex"); rather
that set it
And all the rest!
Can this be done on javascript?
Can you get me started?
Thanks for any help at all
Session("StyleSheetIndex") = colorIndex
Dim objCSS As HtmlLink = New HtmlLink()
Select Case colorIndex
Case Is = 0, 1
objCSS.Attributes.Add("href", "App_Themes/Backgroundblack.css") '
Session["Stylesheet"].ToString())
Case Is = 2
objCSS.Attributes.Add("href", "App_Themes/Backgroundwhite.css")
Case Is = 3
objCSS.Attributes.Add("href", "App_Themes/Backgroundtextured.css")
End Select
objCSS.Attributes.Add("rel", "stylesheet")
objCSS.Attributes.Add("type", "text/css")
HeadMaster.Controls.Add(objCSS)
asp:Content.
I need the .htm to copy the style class from the master or set it as shown
below.
Below is how I set the stylesheet in the master.
What I'd like to do, is change that code into javascript and run it in the
htm file.
I can change the Select into if...else
But I don't know how to is extract from Session("StyleSheetIndex"); rather
that set it
And all the rest!
Can this be done on javascript?
Can you get me started?
Thanks for any help at all
Session("StyleSheetIndex") = colorIndex
Dim objCSS As HtmlLink = New HtmlLink()
Select Case colorIndex
Case Is = 0, 1
objCSS.Attributes.Add("href", "App_Themes/Backgroundblack.css") '
Session["Stylesheet"].ToString())
Case Is = 2
objCSS.Attributes.Add("href", "App_Themes/Backgroundwhite.css")
Case Is = 3
objCSS.Attributes.Add("href", "App_Themes/Backgroundtextured.css")
End Select
objCSS.Attributes.Add("rel", "stylesheet")
objCSS.Attributes.Add("type", "text/css")
HeadMaster.Controls.Add(objCSS)