Hi,
you can do something like this to set the scrollbar
AjaxControlToolkit.TabContainer tcMain = new AjaxControlToolkit.TabContainer();
tcMain.ID = "tcMain";
string strTabName = "";
try
{
if (ds.Tables[0].Rows.Count > 0)
{
short i = 0;
foreach (DataRow dr in ds.Tables[0].Rows)
{
strTabName = dr["tab_name"].ToString();
AjaxControlToolkit.TabPanel tpNew = new AjaxControlToolkit.TabPanel();
tpNew.ID="tb" + strTabName;
tpNew.TabIndex = i;
tpNew.HeaderText = strTabName;
Panel pnlNew = new Panel();
pnlNew.ScrollBars = ScrollBars.Vertical;
LiteralControl lcIframe = new LiteralControl();
lcIframe.Text = "<iframe name="" + strTabName + "" height="100%" width="100%" border="0" hold=" /> " frameborder="0" src="tabs/" + dr["file_path"].ToString() + <br mode="hold" /> dr["tab_main_page"].ToString() + "">test</iframe>";
pnlNew.Controls.Add(lcIframe);
tpNew.Controls.Add(pnlNew);
tcMain.Tabs.Add(tpNew);
i++;
}
}
}
catch (Exception ex)
{
throw ex;
}
}
Let me know if you face any issue