I have a div with id=”myDiv” and runat=”server” inside a listview with id=”lvItem”.I need to access the div in code behind to add width of the div at runtime.How can I access the div from codebehid using C#?Can anyone help me?
I have a div with id=myDiv and runat=server inside a listview with id=lvItem.I need
Share
Just add an Asp:Panel instead. Asp:Panel in ASP.NET = DIV on the front end.
So basically this would be your code
ASP.NET
Code Behind