<asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1"> <Series> <asp:Series Name="Series1" XValueMember="EmpName" YValueMembers="EmpID"> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </ChartAreas> </asp:Chart> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" SelectCommand="SELECT top 10 [EmpName], [EmpID] FROM [tblEmployeeMaster]"> </asp:SqlDataSource>
No comments:
Post a Comment