Application Example

Native ASP.NET pages (NAP) provide a way to disclose ASP.NET data that is being maintained in another environment, such as Visual Studio, directly into Smartsite.

It acts like a state container that loads up your ASP.NET files and lets you select parts through extension Vipers.

The ASP.NET files have to have the page layout for use with ASP.NET Master Pages:

HTML CopyCode image Copy Code
<%@ Page Language="C#" AutoEventWireup="true"  %>
<asp:Content runat="server" ContentPlaceHolderID="comment">
 <form class="CoolForm" runat="server" >
    <label for="txtTitle"><cms:region runat="server">{}</cms:region></label>
    <input type="text" class="TextBox" name="txtTitle" id="txtTitle" runat="server" /> <br/>     <label for="txtBody">Body</label>     
    <textarea class="TextBox HtmlEdit" name="txtBody" id="txtBody" runat="server"></textarea> <br/>
    <label for="calendar">Birthdate</label> 
    <asp:Calendar runat="server" ID="calendar"></asp:Calendar>
    <input type="submit" value="Save" /> 


Smartsite SXML CopyCode image Copy Code
    rem="Load an application file"