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" >
    <h3>Comment</h3>    
    <label for="txtTitle"><cms:region runat="server">{itemdata.name()}</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" /> 
 </form>
</asp:Content>

 

Smartsite SXML CopyCode image Copy Code
<se:application
    rem="Load an application file"
    id="app"
    location="/assets/applications/app.aspx"
/>
     
{page.app.render(comment)}