F
Franklin
I have this line in an aspx page:
<div style="width:1000px;margin:0px auto ">
I want to set the width in the code-behind. I know I can add runat="server"
to the <div /> tag, add an ID value, and access the div from code behind,
like this:
<div runat="server" id="myDiv" style="width:1000px;margin:0px auto ">
But how to then set the style="width:1000px... value so that the width is
something other than 1000px?
Thanks!
<div style="width:1000px;margin:0px auto ">
I want to set the width in the code-behind. I know I can add runat="server"
to the <div /> tag, add an ID value, and access the div from code behind,
like this:
<div runat="server" id="myDiv" style="width:1000px;margin:0px auto ">
But how to then set the style="width:1000px... value so that the width is
something other than 1000px?
Thanks!