In my testing test.aspx
page, there is a <div class="outerdiv1">
containing an <asp:Repeater/>
that generates additional Divs
inside outerDiv1
.
<div class="outerDiv1">
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div class='<%# (Eval("Walkable").ToString() == "1") ? "isWalkable" : "isWall" %>' runat="server" id="Wall">
</div>
</ItemTemplate>
</asp:Repeater>
</div>
The CSS for outerDiv1
is as follows:
.outerDiv1
{
max-width:0px;
overflow:auto;
overflow: auto;
}
Currently, the default max-width
is set to 0px
. I have the width of outerdiv1
stored in the Database. Is it possible to dynamically set the max-width
in the CSS of outerDiv1
using the value from the Database? Can this be achieved with jQuery considering the backend code is in c#?