3 * Namespace : System.Web.UI.MobileControls
5 * Author : Gaurav Vaish
7 * Copyright : 2003 with Gaurav Vaish, and with
12 using System.Collections;
14 using System.Web.Mobile;
16 namespace System.Web.UI.MobileControls
18 public class Link : MobileControl, IPostBackEventHandler
24 void IPostBackEventHandler.RaisePostBackEvent(string argument)
26 MobilePage.ActiveForm = MobilePage.GetForm(argument);
29 public override void AddLinkedForms(IList linkedForms)
31 string url = NavigateUrl;
32 string pref = Constants.FormIDPrefix;
33 if(url.StartsWith(pref))
35 url = url.Substring(pref.Length);
36 Form toAdd = ResolveFormReference(url);
37 if(toAdd != null && !toAdd.HasActiveHandler())
38 linkedForms.Add(toAdd);
42 public string NavigateUrl
46 object o = ViewState["NavigateUrl"];
53 ViewState["NavigateUrl"] = value;
57 public string SoftkeyLabel
61 object o = ViewState["SoftkeyLabel"];
68 ViewState["SoftkeyLabel"] = value;