Source code (Default.aspx) Copy Code |
---|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="MindFusion.Diagramming.WebForms" Namespace="MindFusion.Diagramming.WebForms" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > |
First of all, it is stated in the Default.aspx file that the code for the Web Form is contained in the Default.aspx.cs file:
Source code (Default.aspx) Copy Code |
---|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
Source code (Default.aspx) Copy Code |
---|
<%@ Register Assembly="MindFusion.Diagramming.WebForms" Namespace="MindFusion.Diagramming.WebForms" |
Source code (Default.aspx) Copy Code |
---|
<ndiag:diagramview id="DiagramView1" runat="server" height="303px" width="349px" style="z-index: 100; left: 25px; position: absolute; top: 76px" BackColor="#C0FFC0" BorderColor="#004040" BorderStyle="Double" BorderWidth="2px" ClientSideMode="ImageMap"> |
As shown in the source code, the selected DiagramView properties values in the Properties window at design time are recorded automatically within the "ndiag" tag in the Default.aspx source file, for example ClientSideMode, Diagram ShapeBrush and so on.
C#(Default.aspx.cs) Copy Code |
---|
using System; public partial class _Default : System.Web.UI.Page } |
The empty method Page_Load is generated from the Visual Studio in the Default.aspx.cs. It is executed when loading the page.