How to add Dot Net Dash to your web page
Web Forms (Aspx) page
Declare the control in Source Viewof your ASPX page as shown here.
<%@ Page Language="C#" %>
<%@ Register Assembly="QualityData.DotNetDash" Namespace="QualityData.Web.Controls" TagPrefix="qd" %>
<!DOCTYPE html>
<html>
<body>
<form id="form1" runat="server">
<qd:DotNetDash runat="server" ID="dash" ConnectionStringName="LocalSqlServer" Roles="Administrators" />
</form>
</body>
</html>
Tips:
- Substitute "VB" instead of "C#" in the Page directive if you are using VB.Net
- After you add Register Assembly, Build your project to get Intellisense for
the next step.
- Add the control to your form by typing <qd:DotNetDashand then let Intellisense
guide you.
- Remember to reference both QualityData.DotNetDash.dlland QualityData.Web.Management.dll
in your project.
Mvc View
Register the "MvcControls" namespace with a usingstatement then use our Html
Helper extension to declare the control as shown here.
@using QualityData.Web.MvcControls
@Html.DotNetDash("Administrators").ConnectionStringName("LocalSqlServer")
Tips:
- After you add the usingstatement, build your project to get Intellisense
for the next step.
- Add the control to your form by typing @Html.DotNetDashand then let Intellisense
guide you.
- Remember to reference both QualityData.DotNetDash.dlland QualityData.Web.Management.dll
in your project.