

Here is another way of working with the articles after you’ve exported your project from Artisteer: Then use this method to access controls in your code-behind, e.g:Ĭontrol c = YourArticleID.GetControl("YourTextboxID") TextBox tb = ("YourTextboxID") as TextBox Īlternatively, you can open the exported App_Code\Article.cs file and add a custom method specifically for this purpose:
#ARTISTEER ASP NET CODE#
If your article contains ASP.NET controls, please open the code behind page and write:Īfter that you can access controls using the FindControl method, e.g: Review their structure and use the same approach for your own articles:
#ARTISTEER ASP NET FREE#
Please feel free to choose the one you like best.Īrtisteer includes two sample articles into the exported Default.aspx page. Here are two different methods of adding articles to your application. To create a Vertical Menu, please add the following code block to the Return FindControl(item.ID.Substring(0, item.ID.IndexOf("_"))) as HtmlAnchor If (Regex.IsMatch(item.ID, item as HtmlAnchor

Private HtmlAnchor GetTopLevelItem(Control item) ("class", "active") Īnd another piece of code after the Page_Load function: HtmlAnchor topItem = GetTopLevelItem(item) Write the following code within the Page_Load function:

((HtmlAnchor) item).Attributes.Add("class", "active") īelow are the steps to create a multilevel menu in your ASP.NET application: If (ResolveUrl(((HtmlAnchor)item).HRef).ToLower()
