<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Test4.WebForm2" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script type='text/javascript' src='https://www.google.com/jsapi'></script> <script type='text/javascript'> google.load('visualization', '1', { packages: ['orgchart'] }); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Node'); data.addColumn('string', 'Parent'); data.addRows(JSON.parse(document.getElementById("<%=HiddenField1.ClientID%>").value)); var chart = new google.visualization.OrgChart(document.getElementById('chart_div')); chart.draw(data); } </script> </head> <body> <div id='chart_div'> </div> <form id="as" runat="server"> <asp:HiddenField ID="HiddenField1" runat="server" /> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)