Just remove this line from your HTML page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> and use only Also take care about opening closing tags also
P
prashantagro
@prashantagro
Posts
-
when i upload my code i got this error -
TreeView Control In ASP.netBetter If you use xml. Create a xml file xtracting data from both the table(Suppose filename is x.xml) <menu type="root" value="HOME" url="~/Accounts/Index1.aspx"> <submenu type="folder" value="Fruits"> <state type="document" url="~/HR/a.aspx" value="Apple"/> <state type="document" url="~/HR/b.aspx" value="Mango"/> <state type="document" url="~/hr/c.aspx" value="Grapes"/> </submenu> </menu> Add a treeview Control on your form page in page_load section paste following codes: In CodeBehindfile XmlDataSource obxlmAdditional = new XmlDataSource(); obxlmAdditional.DataFile = "/x.xml"; treeMenu.DataSource = obxlmAdditional; treeMenu.DataBind();