wmlWriter.ascx

wmlWriter.ascx
<%@ Control Language="C#" AutoEventWireup="true" Inherits="userControls.wmlWriter" Codebehind="wmlWriter.ascx.cs" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

wmlWriter.ascx.cs

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Mobile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace userControls
{
    public partial class wmlWriter : System.Web.UI.MobileControls.MobileUserControl
    {
        private string wmlText = string.Empty;
        public string WmlText
        {
            get
            {
                return wmlText;
            }
            set
            {
                wmlText = value;
            }
        }

        protected override void Render(HtmlTextWriter output)
        {
            output.Write(wmlText);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}

posted on 2008-01-02 13:26  xiaoyz  阅读(159)  评论(0)    收藏  举报

导航