c# Programming Glossary: htmlgenericcontrol
Add to List from codebehind C# Asp.net http://stackoverflow.com/questions/3530965/add-to-list-from-codebehind-c-sharp-asp-net ul as a server side control then treat the 'new item' as a HtmlGenericControl and insert it into the control collection ul runat server id.. id tabs To add the item create a new element and add it HtmlGenericControl li new HtmlGenericControl li ul.Controls.Add li HtmlGenericControl.. create a new element and add it HtmlGenericControl li new HtmlGenericControl li ul.Controls.Add li HtmlGenericControl anchor new HtmlGenericControl..
Is there a way I can make a div runat server? So i can turn it into a control? http://stackoverflow.com/questions/5463266/is-there-a-way-i-can-make-a-div-runat-server-so-i-can-turn-it-into-a-control server while reader.Read System.Web.UI.HtmlControls.HtmlGenericControl div new System.Web.UI.HtmlControls.HtmlGenericControl div div.Attributes.. div new System.Web.UI.HtmlControls.HtmlGenericControl div div.Attributes class test div.Style float left div.ID.. You can generate it in the code behind using var myDiv new HtmlGenericControl div Edit What you're generating is a server side control there..
|