In my C# code, I am dynamically creating an ajax container and I want to set its width to 100%. Despite researching online extensively, I still cannot find a solution for this issue.
Here are the relevant sections of my code:
//Aspx file
<div>
<asp:scriptmanager ID="ScriptManager1" runat="server">
</asp:scriptmanager>
</div>
<asp:updatepanel ID="UpdatePanel1" runat="server" ScrollBars="Horizontal">
<contenttemplate>
<asp:placeholder ID="PlaceHolder1" runat="server"></asp:placeholder>
<asp:Chart runat="server">
</asp:Chart>
</contenttemplate>
</asp:updatepanel>
//Cs file
AjaxControlToolkit.TabContainer container = new AjaxControlToolkit.TabContainer();
container.ID = "TabContainer";
container.EnableViewState = false;
container.Tabs.Clear();
container.Height = Unit.Pixel(2000);
container.Width = Unit.Pixel(2000);
container.Tabs.AddAt(0, GetManualTab());
Question: How can I set the width of the Ajax tab container to 100% if it is being created dynamically in C#?
I would greatly appreciate any assistance on this matter. Thank you!