Back

CheetSheet NetCanvas Forms & Templates

Quick Reference for NetCanvas Forms & Templates

TextBox

<div class="form-group">
  <label class="col-md-3 control-label"
         for="<%=tbURL.ClientID%>">URL</label>
  <div class="col-md-9">
    <asp:textbox id="tbURL"
                 runat="server"
                 clientidmode="autoid"
                 cssclass="form-control">
    </asp:textbox>
  </div>
</div>

Button

<div class="form-group">
  <div class="col-md-3 col-md-offset-9">
    <asp:button id="btnAdd"
                runat="server"
                clientidmode="autoid"
                cssclass="btn btn-default btn-block"
                onclick="btnAddClick"
                text="Add"
                >
    </asp:button>
  </div>
</div>

Button - CodeBehind

public void btnAddClick(object sender, EventArgs e){

}

Select

<div class="form-group">
  <label class="col-md-3 control-label"
         for="<%=ddSelect.ClientID%>">Select</label>
  <div class="col-md-9">
    <asp:dropdownlist id="ddSelect"
                         runat="server"
                         clientidmode="autoid"
                         cssclass="form-control">
    </asp:dropdownlist>
  </div>
</div>

n4:listing

<n4:listing runat="server"
            id="ls"
            dataitemtype=""
            itemctrltype="">
</n4:listing>

Templates

Inherit from TemplateControl.

The HTML :

<n4:canvasplaceholder id="main" 
                      runat="server" 
                      tagname="section" >
</n4:canvasplaceholder>

-

<input type="date" class="form-control">