protected internal override void Render(HtmlTextWriter writer) { String alternateText = Control.AlternateText; if (!String.IsNullOrEmpty(alternateText)) { writer.EnterStyle(Control.ControlStyle); writer.Write(LiteralControlAdapterUtility.ProcessWmlLiteralText(alternateText)); writer.ExitStyle(Control.ControlStyle); } }
protected internal override void Render(HtmlTextWriter writer) { if (Control.HotSpots.Count > 0) { HotSpotMode mapMode = Control.HotSpotMode; if (mapMode == HotSpotMode.NotSet) { mapMode = HotSpotMode.Navigate; } HotSpotMode spotMode; int hotSpotIndex = 0; string targetURL; string text; foreach (HotSpot item in Control.HotSpots) { text = item.AlternateText; if (text != null && text.Length == 0) { text = item.NavigateUrl; } spotMode = item.HotSpotMode; if (spotMode == HotSpotMode.NotSet) { spotMode = mapMode; } if (spotMode == HotSpotMode.PostBack) { PageAdapter.RenderPostBackEvent(writer, Control.ClientID, hotSpotIndex.ToString(CultureInfo.InvariantCulture), null, text); } else if (spotMode == HotSpotMode.Navigate) { targetURL = Control.ResolveClientUrl(item.NavigateUrl); targetURL = Control.GetCountClickUrl(targetURL); PageAdapter.RenderBeginHyperlink(writer, targetURL, true /* encode */, null, Control.AccessKey); writer.Write(text); PageAdapter.RenderEndHyperlink(writer); } else //HotSpotMode.Inactive { writer.Write(LiteralControlAdapterUtility.ProcessWmlLiteralText(text)); } ++hotSpotIndex; writer.WriteBreak(); } } }
public override string TransformText(string text) { return(LiteralControlAdapterUtility.ProcessWmlLiteralText(text)); }
protected internal override void Render(HtmlTextWriter markupWriter) { markupWriter.EnterStyle(Control.ControlStyle); markupWriter.Write(LiteralControlAdapterUtility.ProcessWmlLiteralText(Control.Text)); markupWriter.ExitStyle(Control.ControlStyle); }