forum

Home / DeveloperSection / Forums / How remove css class in code behind .net 2.0

How remove css class in code behind .net 2.0

Anonymous User 4921 28-Jan-2014

My div contains 4 css class I want to delete one from them for adding, I do this:

MyDivId.Attributes["class"] += " addedClass";

in newest framework they can be done like this:

MyDivId.CssClass.Replace("addedClass", "");

but in .net 2.0 not found CssClass

some proposals? thx in advance!


c# c# 
Updated on 29-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By