G
Guest
e.Item.CssClass = "SelectedTab";Hello all,
I am using .NET 1.1, VS 2003 - Syntax is C#
I am trying to change ('enhanced') attributes set by an css-file dynamically.
Content of an CSS-File:
..WhatEver
{
...
background-image: url(SecretApp/skins/default/images/inactive.gif);
...
}
To apply this style I do the following:
<instance of System.Web.UI.WebControls>.CssClass = "WhatEver";
hyperlink.CssClass = "WhatEver";
That works. But now it comes. I want to Change the Value of this
Style - let's say the Folder.
hyperlink.Style["background-image"] = "new folder"; does not work
of course.
How does that work? Is there an enhanced and secret Style Collection?
Thank you in advance 4 your help.
I am using .NET 1.1, VS 2003 - Syntax is C#
I am trying to change ('enhanced') attributes set by an css-file dynamically.
Content of an CSS-File:
..WhatEver
{
...
background-image: url(SecretApp/skins/default/images/inactive.gif);
...
}
To apply this style I do the following:
<instance of System.Web.UI.WebControls>.CssClass = "WhatEver";
hyperlink.CssClass = "WhatEver";
That works. But now it comes. I want to Change the Value of this
Style - let's say the Folder.
hyperlink.Style["background-image"] = "new folder"; does not work
of course.
How does that work? Is there an enhanced and secret Style Collection?
Thank you in advance 4 your help.