I want to add my own ID in code behind without declaring it in the front code. Is it possible?
To clarify my question, here is an example : Adding css class through aspx code behind
In front code:
<div id="classMe" runat="server"></div>
In code behind:
classMe.Attributes.Add("class", "some-class")
Is it possible to set my own ID, the id="classMe" in code behind?
Something like:
WebForm.Css.ID.Add = "classMe";
WebForm.Css.Attributes.Add = "background-color:red";