is there way to change a <div>
style arrtibute from the code behind?
for example how do i change the display of<div ID="id1" style="display:"none">
to be diplay:""
in asp.net?
Tnx for the help
is there way to change a <div>
style arrtibute from the code behind?
for example how do i change the display of<div ID="id1" style="display:"none">
to be diplay:""
in asp.net?
Tnx for the help
Well to access the div from code-behind, it would need to be runat="server"
but if it is you just access the style attribute:
id1.Attributes["style"] = "display:\"\"";
but as Mr. Alien writes in the comment to your question, you probably just want to clear it, or set it to block or something.