RPS.Config.getDomValue C# (CSharp) Method

getDomValue() public method

public getDomValue ( string id ) : string
id string
return string
        public string getDomValue(string id)
        {
            HtmlElement he = this.getElementById(id);
            if (he == null) return null;
            try {
                switch (he.TagName.ToLower()) {
                    case "textarea":
                        return Utils.HtmlDecode(he.InnerHtml);
                        //return he.InnerHtml;
                    break;
                    default:
                        return he.GetAttribute("value");
                    break;
                }
            } catch (System.Runtime.InteropServices.COMException co) {
                //this.screensaver.showInfoOnMonitors("Error getPersistant(" + id + ")\n" + Convert.ToString(co.Message));
                return null;
            }
            return null;
        }