Web controls

To smoothly integrate Landscape into preexisting applications, the library is shipped with a set of controls that enable developers to delegate only certain tasks.

Widget Control

<%@ Page ValidateRequest="false" Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Landscape.Web.Test" %>
<%@ Register TagPrefix="lsc" Namespace="Landscape.Web.Controls" Assembly="Landscape.Web" %>
<lsc:WidgetControl WidgetName="BasicWidget" ID="BasicWidget" runat="server">
        <lsc:WidgetParameter key="param" value="foobar" />

Inline XSLT Control

It is used to print the output of an inline XPath expression against a selected data source. Automatic escaping can be disable directly from the aspx file

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Controls.aspx.cs" Inherits="Landscape.Examples.Controls" %>
<%@ Register TagPrefix="lsc" Namespace="Landscape.Web.Controls" Assembly="Landscape.Web" %>
<!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">
    <form id="form1" runat="server">
        <lsc:InlineXSLTControl ID="lscInline" DataSourceXml="<cats><cat1></cat1></cats>" DisableOutputEscaping="true" Expression="concat('1', '2')" runat="server" />    

Diagnostics Control

Prints a list of the tasks performed to render a web page using Landscape

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Landscape.Examples.Default" %>
<%@ Register TagPrefix="lsc" Assembly="Landscape.Web" Namespace="Landscape.Web.Controls" %>
<lsc:DiagnosticsControl ID="lscDiag" runat="server" />

Last edited Oct 29, 2011 at 11:11 PM by Kunyo, version 4


No comments yet.